35 lines
877 B
Plaintext
35 lines
877 B
Plaintext
$OpenBSD: patch-parse_input_c,v 1.1 2007/10/26 21:38:24 jasper Exp $
|
|
--- parse_input.c.orig Wed Nov 6 23:59:38 1996
|
|
+++ parse_input.c Fri Oct 26 23:33:35 2007
|
|
@@ -32,6 +32,8 @@
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <sys/signal.h>
|
|
|
|
@@ -48,6 +50,12 @@ time_t time_offset=0;
|
|
|
|
extern int reverseFlag;
|
|
|
|
+extern void summarize_logfile(char *filename);
|
|
+extern void display_connection(char *input_filename, int con_id);
|
|
+extern void dump_connection(char *input_filename, int con_id);
|
|
+extern void parse_stdin(char *output_filename);
|
|
+
|
|
+int
|
|
main(argc, argv)
|
|
int argc;
|
|
char *argv[];
|
|
@@ -55,8 +63,6 @@ char *argv[];
|
|
int dump=0;
|
|
char *input_filename=NULL, *output_filename=NULL;
|
|
int con_id=-1, c;
|
|
- extern int optind, opterr;
|
|
- extern char *optarg;
|
|
extern void cleanup_output();
|
|
struct tm tm_offset;
|
|
|