diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/debug2html.c | 9 | ||||
-rw-r--r-- | source3/utils/smbpasswd.c | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/source3/utils/debug2html.c b/source3/utils/debug2html.c index 00c6306fcf..fa2be41336 100644 --- a/source3/utils/debug2html.c +++ b/source3/utils/debug2html.c @@ -29,6 +29,9 @@ * -------------------------------------------------------------------------- ** * * $Log: debug2html.c,v $ + * Revision 1.4 1998/11/13 03:37:01 tridge + * fixes for OSF1 compilation + * * Revision 1.3 1998/10/28 20:33:35 crh * I've moved the debugparse module files into the ubiqx directory because I * know that 'make proto' will ignore them there. The debugparse.h header @@ -61,7 +64,7 @@ * The size of the read buffer. */ -#define BSIZE 1024 +#define DBG_BSIZE 1024 /* -------------------------------------------------------------------------- ** * Functions... @@ -219,7 +222,7 @@ int main( int argc, char *argv[] ) { int i; int len; - char bufr[BSIZE]; + char bufr[DBG_BSIZE]; dbg_Token old = dbg_null, new = dbg_null, state = dbg_null, @@ -230,7 +233,7 @@ int main( int argc, char *argv[] ) (void)printf( " <TITLE>Samba Debug Output</TITLE>\n</HEAD>\n\n<BODY>\n" ); while( (!feof( stdin )) - && ((len = fread( bufr, 1, BSIZE, stdin )) > 0) ) + && ((len = fread( bufr, 1, DBG_BSIZE, stdin )) > 0) ) { for( i = 0; i < len; i++ ) { diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 2adb6d9523..a96a1c0f7b 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -153,7 +153,7 @@ static char *stdin_new_passwd(void) static fstring new_passwd; size_t len; - ZERO_STRUCT(new_passwd); + ZERO_ARRAY(new_passwd); /* * if no error is reported from fgets() and string at least contains @@ -194,7 +194,7 @@ static char *prompt_for_new_password(BOOL stdin_get) char *p; fstring new_passwd; - ZERO_STRUCT(new_passwd); + ZERO_ARRAY(new_passwd); p = get_pass("New SMB password:", stdin_get); |