Skip to content

Commit

Permalink
parameter for capture_launch_thread()
Browse files Browse the repository at this point in the history
- NULL is given as parameter on function execution
- it is defined with parameter capture_info_t *capinfo
- fix for warning: a function declaration without a prototype is deprecated
in all versions of C and is treated as a zero-parameter prototype in C2x,
conflicting with a subsequent definition
  • Loading branch information
miconda authored and Kaian committed Oct 16, 2024
1 parent 2fc8fe0 commit c642dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/capture.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ capture_packet_parse(packet_t *pkt);
* @return 0 on success, 1 otherwise
*/
int
capture_launch_thread();
capture_launch_thread(capture_info_t *capinfo);

/**
* @brief PCAP Capture Thread
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ main(int argc, char* argv[])
}

// Start a capture thread
if (capture_launch_thread() != 0) {
if (capture_launch_thread(NULL) != 0) {
ncurses_deinit();
fprintf(stderr, "Failed to launch capture thread.\n");
return 1;
Expand Down

0 comments on commit c642dcf

Please sign in to comment.