diff options
author | Tim Potter <tpot@samba.org> | 1999-04-11 00:27:43 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 1999-04-11 00:27:43 +0000 |
commit | d04c530836202ca2277176341261b3ac78f4956a (patch) | |
tree | 5d2e0b8c84d0c461271ce0560a6bd1a90efe74ed /source/utils/debug2html.c | |
parent | 5feb10ef1330d87fca34cc5400c124dcfce7db4f (diff) | |
download | samba-d04c530836202ca2277176341261b3ac78f4956a.tar.gz |
Modification to compile under egcs 2.91.63.
Diffstat (limited to 'source/utils/debug2html.c')
-rw-r--r-- | source/utils/debug2html.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/utils/debug2html.c b/source/utils/debug2html.c index 62ecacf7e89..ef7201168fa 100644 --- a/source/utils/debug2html.c +++ b/source/utils/debug2html.c @@ -28,7 +28,7 @@ * does a decent job of converting Samba logs into HTML. * -------------------------------------------------------------------------- ** * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * * ========================================================================== ** */ @@ -39,8 +39,8 @@ * Global values. */ -FILE *infile = stdin; -FILE *outfile = stdout; +FILE *infile; +FILE *outfile; /* -------------------------------------------------------------------------- ** * The size of the read buffer. @@ -298,6 +298,9 @@ int main( int argc, char *argv[] ) if( argc > 3 ) usage(); + infile = stdin; + outfile = stdout; + if( argc > 1 && 0 != strcmp( argv[1], "-" ) ) infile = carefull_fopen( argv[1], "r" ); |