forked from dect/dedected
1
0
Fork 0

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:
Martin Hauke 2023-12-16 13:12:47 +01:00
parent fb6b4944ad
commit 338b611564
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}