summaryrefslogtreecommitdiff
path: root/source/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
committerAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
commit917160dee69bbc198985b6f3232ca2dcda809d8a (patch)
tree21114bd95b418f71df6070222265f254bf734d24 /source/utils
parent0490dedfd8865a39733ad6886b76d5f7768df575 (diff)
downloadsamba-917160dee69bbc198985b6f3232ca2dcda809d8a.tar.gz
- made FAST_SHARE_MODES standard for Linux
- you can now press enter after a password prompt with "smbclient -L hostname" and it will use a blank username and password, the same as if you used -U% - changed the wins.dat store code to not go via a string variable (just use fprintf instead) - removed a "unsigned long" that luke put back in, changing it to uint32 to keep 64 bit machines happy. Naughtly luke! - allow guest non-connnected print queue listings so ms client 3 can work
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/utils/status.c b/source/utils/status.c
index c9fda5d3598..ab61a4db89b 100644
--- a/source/utils/status.c
+++ b/source/utils/status.c
@@ -55,7 +55,7 @@ unsigned int Ucrit_IsActive = 0; /* added by OH */
BOOL firstopen=True;
BOOL processes_only=False;
int last_pid=0;
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
pstring shmem_file_name;
share_mode_record *scanner_p;
share_mode_record *prev_p;
@@ -165,7 +165,7 @@ unsigned int Ucrit_IsActive = 0; /* added by OH */
printf("\n");
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
/*******************************************************************
initialize the shared memory for share_mode management
******************************************************************/
@@ -286,7 +286,7 @@ unsigned int Ucrit_IsActive = 0; /* added by OH */
}
printf(" %s %s",fname,asctime(LocalTime(&t)));
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
prev_p = scanner_p ;
scanner_p = (share_mode_record *)shm_offset2addr(scanner_p->next_offset);
} /* end while */
@@ -307,7 +307,7 @@ unsigned int Ucrit_IsActive = 0; /* added by OH */
#endif
if (firstopen)
printf("No locked files\n");
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
printf("\nShare mode memory usage (bytes):\n");
printf(" %d(%d%%) free + %d(%d%%) used + %d(%d%%) overhead = %d(100%%) total\n",
bytes_free, (bytes_free * 100)/bytes_total,