Skip to content

Commit

Permalink
Use correct function name in outputting error information.
Browse files Browse the repository at this point in the history
  • Loading branch information
NanXiao committed Nov 15, 2019
1 parent 4f15b29 commit c6b3161
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testprogs/capturetest.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ main(int argc, char **argv)
/*
* Error. Report it.
*/
(void)fprintf(stderr, "%s: pcap_loop: %s\n",
(void)fprintf(stderr, "%s: pcap_dispatch: %s\n",
program_name, pcap_geterr(pd));
}
pcap_close(pd);
Expand Down
2 changes: 1 addition & 1 deletion testprogs/selpolltest.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ main(int argc, char **argv)
/*
* Error. Report it.
*/
(void)fprintf(stderr, "%s: pcap_loop: %s\n",
(void)fprintf(stderr, "%s: pcap_dispatch: %s\n",
program_name, pcap_geterr(pd));
}
pcap_close(pd);
Expand Down
2 changes: 1 addition & 1 deletion testprogs/threadsignaltest.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ capture_thread_func(THREAD_FUNC_ARG_TYPE arg)
/*
* Error. Report it.
*/
(void)fprintf(stderr, "%s: pcap_loop: %s\n",
(void)fprintf(stderr, "%s: pcap_dispatch: %s\n",
program_name, pcap_geterr(pd));
}
return 0;
Expand Down

0 comments on commit c6b3161

Please sign in to comment.