TCPDump porting issues
TCPDump porting issues
- Subject: TCPDump porting issues
- From: Chilton Webb <email@hidden>
- Date: Tue, 14 Aug 2001 13:39:38 -0500
Just curious if anyone else has tried to bring TCPDump to OSX. I'm doing
that right now, and experiencing a world of hurt. Here's my latest
problem, any suggestions welcome:
1) I have one 'real' error:
extern __dead void usage(void) __attribute__((volatile));
The compiler no likey. Says "bad attribute specification, expecting
identifier, found 'volatile'
What does that mean? How do I fix it?
2) I have one 'warning':
"control reaches end of non-void function"
// not a darn clue on this one. Here's the code snippet it's griping
about:
static pcap_handler
lookup_printer(int type)
{
struct printer *p;
for (p = printers; p->f; ++p)
if (type == p->type)
return p->f;
syslog(LOG_ALERT,"unknown data link type 0x%x", type);
/* NOTREACHED */
//<------- here, by the way, is where it coughs.
}
Thanks, and I'll report me findings to the list. Arg.
-Chilton