diff -urN dsniff-2.4.org/sshow.c dsniff-2.4/sshow.c --- dsniff-2.4.org/sshow.c 2003-11-08 22:37:23.000000000 +0100 +++ dsniff-2.4/sshow.c 2003-11-08 22:55:31.000000000 +0100 @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -222,7 +223,7 @@ if (debug) printf("- %s -> %s: DATA (%s bytes, %.2f seconds)\n", s_saddr(ts), s_daddr(ts), s_range(plain_range), - (float)delay / CLK_TCK); + (float)delay / CLOCKS_PER_SEC); if (debug > 1) print_data(&ts->server, cipher_size); @@ -270,7 +271,7 @@ if (debug) printf("- %s <- %s: DATA (%s bytes, %.2f seconds)\n", s_saddr(ts), s_daddr(ts), s_range(plain_range), - (float)delay / CLK_TCK); + (float)delay / CLOCKS_PER_SEC); if (debug > 1) print_data(&ts->client, cipher_size); @@ -299,7 +300,7 @@ if (session->state == 1 && #ifdef USE_TIMING - now - get_history(session, 2)->timestamp >= CLK_TCK && + now - get_history(session, 2)->timestamp >= CLOCKS_PER_SEC && #endif session->protocol == 1 && (session->history.directions & 7) == 5 &&