Module Name: src Committed By: riastradh Date: Wed Aug 9 07:01:09 UTC 2023
Modified Files: src/lib/libc/resolv: res_debug.c Log Message: libc/resolv/res_debug.c: Minor whitespace fixes. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libc/resolv/res_debug.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/resolv/res_debug.c diff -u src/lib/libc/resolv/res_debug.c:1.17 src/lib/libc/resolv/res_debug.c:1.18 --- src/lib/libc/resolv/res_debug.c:1.17 Tue Aug 1 08:47:25 2023 +++ src/lib/libc/resolv/res_debug.c Wed Aug 9 07:01:09 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: res_debug.c,v 1.17 2023/08/01 08:47:25 mrg Exp $ */ +/* $NetBSD: res_debug.c,v 1.18 2023/08/09 07:01:09 riastradh Exp $ */ /* * Portions Copyright (C) 2004, 2005, 2008, 2009 Internet Systems Consortium, Inc. ("ISC") @@ -97,7 +97,7 @@ static const char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; static const char rcsid[] = "Id: res_debug.c,v 1.19 2009/02/26 11:20:20 tbox Exp"; #else -__RCSID("$NetBSD: res_debug.c,v 1.17 2023/08/01 08:47:25 mrg Exp $"); +__RCSID("$NetBSD: res_debug.c,v 1.18 2023/08/09 07:01:09 riastradh Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -1176,7 +1176,7 @@ p_secstodate (u_long secs) { struct tm *mytime; #ifdef HAVE_TIME_R struct tm res; - + mytime = gmtime_r(&myclock, &res); #else mytime = gmtime(&myclock); @@ -1184,10 +1184,10 @@ p_secstodate (u_long secs) { mytime->tm_year += 1900; mytime->tm_mon += 1; if ((size_t)snprintf(output, sizeof p_secstodate_output, - "%04d%02d%02d%02d%02d%02d", - mytime->tm_year, mytime->tm_mon, mytime->tm_mday, - mytime->tm_hour, mytime->tm_min, mytime->tm_sec) > - sizeof p_secstodate_output) { + "%04d%02d%02d%02d%02d%02d", + mytime->tm_year, mytime->tm_mon, mytime->tm_mday, + mytime->tm_hour, mytime->tm_min, mytime->tm_sec) > + sizeof p_secstodate_output) { output[sizeof(p_secstodate_output) - 1] = 0; } return (output);