summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-13 03:37:01 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-13 03:37:01 +0000
commit2db96e3047400be594e7c5ebf7d6fcedb77f6907 (patch)
tree4a3c3d2e2062b9aaf86d7b6ef9b827b60a6189ac /source3/utils
parent2164685b9f959814af2067aa0dcac2d1b2ac0bc5 (diff)
downloadsamba-2db96e3047400be594e7c5ebf7d6fcedb77f6907.tar.gz
samba-2db96e3047400be594e7c5ebf7d6fcedb77f6907.tar.bz2
samba-2db96e3047400be594e7c5ebf7d6fcedb77f6907.zip
fixes for OSF1 compilation
(This used to be commit 5be3c37f50eac35cad3eadf0d24e7a4ee04c075e)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/debug2html.c9
-rw-r--r--source3/utils/smbpasswd.c4
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);