--- readsmb.c.orig Tue Nov 23 09:36:00 1999 +++ readsmb.c Tue Nov 23 09:38:48 1999 @@ -44,16 +44,17 @@ #include #include #include -#include -#ifdef __FreeBSD__ +#include +#include +#ifdef BSD #include -#endif /* __FreeBSD__ */ +#endif /* BSD */ #ifdef __sun /* Solaris 2.x */ #define u_int32_t uint32_t #include -#endif /* Not FreeBSD, not Solaris. Our default is Linux */ +#endif /* Not BSD, not Solaris. Our default is Linux */ #include -#include "pcap.h" +#include #define FILTER_CMD "src port 139 or dst port 139" #define TRUE (1) @@ -86,7 +87,7 @@ int current_pkt_type = 0; int neg_prot, pw_offset, sk_offset, user_offset; -void * +void killed (int sig) { fflush (log); @@ -330,7 +331,7 @@ free (pc6); return (lmhash); } -void +int main (int argc, char **argv) { char *cur_pkt, *next_pkt;