From d72c98a931ff05a7f8b74b98cd7ebd025a87d249 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Jan 2000 12:24:01 +0000 Subject: [PATCH] use GET_DENY_MODE() macro instead of the bit shift --- source/rpcclient/display.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/rpcclient/display.c b/source/rpcclient/display.c index e9875d0c888..ddbe435d757 100644 --- a/source/rpcclient/display.c +++ b/source/rpcclient/display.c @@ -30,15 +30,14 @@ char *get_file_mode_str(uint32 share_mode) { static fstring mode; - switch ((share_mode>>4)&0xF) + switch (GET_DENY_MODE(share_mode)) { case DENY_NONE : fstrcpy(mode, "DENY_NONE "); break; case DENY_ALL : fstrcpy(mode, "DENY_ALL "); break; case DENY_DOS : fstrcpy(mode, "DENY_DOS "); break; case DENY_READ : fstrcpy(mode, "DENY_READ "); break; case DENY_WRITE: fstrcpy(mode, "DENY_WRITE "); break; - case DENY_FCB: - case 0xFF: fstrcpy(mode, "DENY_FCB "); break; + case DENY_FCB: fstrcpy(mode, "DENY_FCB "); break; default : fstrcpy(mode, "DENY_???? "); break; }