From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 12 20:10:55 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E63516A4CF for ; Sun, 12 Sep 2004 20:10:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94BF643D41 for ; Sun, 12 Sep 2004 20:10:55 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8CKAtk1028208 for ; Sun, 12 Sep 2004 20:10:55 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8CKAtIb028207; Sun, 12 Sep 2004 20:10:55 GMT (envelope-from gnats) Date: Sun, 12 Sep 2004 20:10:55 GMT Message-Id: <200409122010.i8CKAtIb028207@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Giorgos Keramidas Subject: Re: bin/71616: [PATCH] cleanup of the usr.sbin/yp_mkdb code X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2004 20:10:55 -0000 The following reply was made to PR bin/71616; it has been noted by GNATS. From: Giorgos Keramidas To: Dan Lukes Cc: bug-followup@freebsd.org Subject: Re: bin/71616: [PATCH] cleanup of the usr.sbin/yp_mkdb code Date: Sun, 12 Sep 2004 21:23:45 +0300 On 2004-09-12 04:37, Dan Lukes wrote: > *** usr.sbin/yp_mkdb/yp_mkdb.c.ORIG Sun Sep 5 18:54:07 2004 > --- usr.sbin/yp_mkdb/yp_mkdb.c Sun Sep 5 19:01:20 2004 > [...] > - snprintf(buf, sizeof(buf), "%lu", time(NULL)); > + snprintf(buf, sizeof(buf), "%lu", (long unsigned int)time(NULL)); Just a minor comment: An (unsigned long) cast should be fine here. There's no need to add `int' and the ordering of long unsigned seems a bit backwards -- most of the time I've seen it written with `unsigned' first. - Giorgos