Fixed compile time warnings.
This commit is contained in:
4
iftop.c
4
iftop.c
@@ -340,7 +340,7 @@ void packet_init() {
|
|||||||
char errbuf[PCAP_ERRBUF_SIZE];
|
char errbuf[PCAP_ERRBUF_SIZE];
|
||||||
char *m;
|
char *m;
|
||||||
int s;
|
int s;
|
||||||
struct ifreq ifr = {0};
|
struct ifreq ifr = {};
|
||||||
int dlt;
|
int dlt;
|
||||||
|
|
||||||
/* First, get the address of the interface. If it isn't an ethernet
|
/* First, get the address of the interface. If it isn't an ethernet
|
||||||
@@ -411,7 +411,7 @@ void packet_loop(void* ptr) {
|
|||||||
* Entry point. See usage(). */
|
* Entry point. See usage(). */
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
struct sigaction sa = {0};
|
struct sigaction sa = {};
|
||||||
|
|
||||||
options_read(argc, argv);
|
options_read(argc, argv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user