Date: Thu, 9 Aug 2007 18:07:46 GMT From: Matus Harvan <mharvan@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124963 for review Message-ID: <200708091807.l79I7kEF081707@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124963 Change 124963 by mharvan@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708091807.l79I7kEF081707>