PERFORCE change 124963 for review
Matus Harvan
mharvan at FreeBSD.org
Thu Aug 9 11:07:47 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=124963
Change 124963 by mharvan at mharvan_bike-planet on 2007/08/09 18:07:29
use err(3) rather than errx(3) when errno is available
Affected files ...
.. //depot/projects/soc2007/mharvan-mtund/mtund.src/mtund.c#2 edit
Differences ...
==== //depot/projects/soc2007/mharvan-mtund/mtund.src/mtund.c#2 (text+ko) ====
@@ -310,7 +310,7 @@
/* fragment reassembly timeout */
if (gettimeofday(&tv, NULL) != 0) {
- errx(EX_OSERR, "gettimeofday() failed");
+ err(EX_OSERR, "gettimeofday() failed");
} else {
LIST_FOREACH_SAFE(np, &frag_info_list, frag_infos, np_temp) {
if (tv.tv_sec - np->tv_sec > FRAG_TIMEOUT) {
@@ -409,7 +409,7 @@
/* collect information about the fragments */
if (gettimeofday(&tv, NULL) != 0) {
- errx(EX_OSERR, "gettimeofday() failed");
+ err(EX_OSERR, "gettimeofday() failed");
}
p->id = frag_hdr->id;
p->size = frag_hdr->size;
More information about the p4-projects
mailing list