forked from dect/dedected
pcapstein: Fix conflicting types for 'shutdown'
pcapstein.c:174:6: error: conflicting types for 'shutdown'; have 'void()' 174 | void shutdown() | ^~~~~~~~ In file included from /usr/include/pcap/socket.h:58, from /usr/include/pcap/pcap.h:130: /usr/include/sys/socket.h:324:12: note: previous declaration of 'shutdown' with type 'int(int, int)' 324 | extern int shutdown (int __fd, int __how) __THROW; | ^~~~~~~~
This commit is contained in:
parent
fb6b4944ad
commit
338b611564
|
@ -171,7 +171,7 @@ void play()
|
|||
fprintf(stderr, "pcap error: %s\n", errbuf);
|
||||
}
|
||||
|
||||
void shutdown()
|
||||
void _shutdown()
|
||||
{
|
||||
pcap_close(fi.p);
|
||||
close(fi.fpp);
|
||||
|
@ -187,6 +187,6 @@ int main(int argc, char ** argv)
|
|||
}
|
||||
init(argv[1]);
|
||||
play();
|
||||
shutdown();
|
||||
_shutdown();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue