[Tcpick-project] Little patch for AMD64/EMT64
Status: Beta
Brought to you by:
duskdruid
From: Vladimir D B. <vl...@or...> - 2007-12-15 20:45:22
|
Hello! On FreeBSD 6.x/amd64 (on EMT64 platform) tcpick crashes with SIGSEGV because pointer returned into display_status() from lookup() is broken. To fix this problem you have to declare this function prototype in a header file included into display.c, for example: lookup.h. This is a patch to fix this problem: ========================================================= *** src/lookup.h.orig Sat Dec 15 22:36:29 2007 --- src/lookup.h Sat Dec 15 22:37:22 2007 *************** *** 40,42 **** --- 40,45 ---- char * name; struct in_addr ip; }; + + char * lookup(struct in_addr ia); + ========================================================= P.S. It's a good idea to declare all function prototypes before its first call. Otherwise you will have problems with all functions which returns anything but int. -- Best regards, Vladimir D Belousov |