Skip to content

Commit

Permalink
add comments about where this pointer to function usually points
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr authored and fxlb committed Nov 14, 2021
1 parent 6d010c7 commit 13bab28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions savefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ pcap_open_offline_with_tstamp_precision(const char *fname, u_int precision,
return NULL;
}

/* such as: stdio_open_read() in pcap-ioplugin.c */
fp = plugin->open_read(fname, errbuf);
if (fp == NULL) {
return (NULL);
Expand Down
1 change: 1 addition & 0 deletions sf-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ pcap_dump_open(pcap_t *p, const char *fname)
return NULL;
}

/* such as: stdio_open_write() in pcap-ioplugin.c */
if (plugin->open_write == NULL) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
"No file writing function found");
Expand Down

0 comments on commit 13bab28

Please sign in to comment.