diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-08-10 21:31:43 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-08-10 21:31:43 +0000 |
commit | 9033f210c93026bd5c976b9a51c68901aff8b598 (patch) | |
tree | 6bfcd222a7a7e13551fd51129406cd4dccea6d48 /rawshark.c | |
parent | 3ac11c0a95a9fe62c84169dca86ec56e0bbad721 (diff) |
Fix (-W)documentation error found by Clang
rawshark.c:889:11: error: parameter 'fd' not found in the function declaration
[-Werror,-Wdocumentation]
* @param fd [IN] A POSIX file descriptor. Because that's _exactly_ the sort
^~
rawshark.c:889:11: note: did you mean 'pd'?
* @param fd [IN] A POSIX file descriptor. Because that's _exactly_ the sort
^~
pd
svn path=/trunk/; revision=51280
Diffstat (limited to 'rawshark.c')
-rw-r--r-- | rawshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rawshark.c b/rawshark.c index 4c5eb39a78..ea48c91405 100644 --- a/rawshark.c +++ b/rawshark.c @@ -897,7 +897,7 @@ main(int argc, char *argv[]) /** * Read data from a raw pipe. The "raw" data consists of a libpcap * packet header followed by the payload. - * @param fd [IN] A POSIX file descriptor. Because that's _exactly_ the sort + * @param pd [IN] A POSIX file descriptor. Because that's _exactly_ the sort * of thing you want to use in Windows. * @param phdr [OUT] Packet header information. * @param err [OUT] Error indicator. Uses wiretap values. @@ -937,7 +937,7 @@ raw_pipe_read(struct wtap_pkthdr *phdr, guchar * pd, int *err, const gchar **err if (want_pcap_pkthdr) { phdr->ts.secs = mem_hdr.ts.tv_sec; - phdr->ts.nsecs = mem_hdr.ts.tv_usec * 1000; + phdr->ts.nsecs = (gint32)mem_hdr.ts.tv_usec * 1000; phdr->caplen = mem_hdr.caplen; phdr->len = mem_hdr.len; } else { |