tag 420944 patch thanks Martin Michlmayr <[EMAIL PROTECTED]> (02/05/2007): > You have to use CLOCKS_PER_SEC instead of CLK_TCK. According to > /usr/include/time.h, CLK_TCK is the "obsolete POSIX.1-1988 name" > for CLOCKS_PER_SEC.
Yep, the attached patch solves this FTBFS, tagging accordingly. Cheers, -- Cyril Brulebois
diff -ur dsniff-2.4b1+debian~/sshow.c dsniff-2.4b1+debian/sshow.c --- dsniff-2.4b1+debian~/sshow.c 2001-03-19 06:52:15.000000000 +0000 +++ dsniff-2.4b1+debian/sshow.c 2007-07-27 00:17:48.000000000 +0000 @@ -222,7 +222,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 +270,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 +299,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 &&
pgpUwvNzjVJVl.pgp
Description: PGP signature