Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib make it obvious what...
details: https://anonhg.NetBSD.org/src/rev/4835e943c636
branches: trunk
changeset: 753576:4835e943c636
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 02 15:28:16 2010 +0000
description:
make it obvious what ctime it is used for.
diffstat:
crypto/external/bsd/netpgp/dist/src/lib/misc.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r 3d05b2b5553b -r 4835e943c636 crypto/external/bsd/netpgp/dist/src/lib/misc.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/misc.c Fri Apr 02 15:26:17 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/misc.c Fri Apr 02 15:28:16 2010 +0000
@@ -57,7 +57,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: misc.c,v 1.27 2010/03/05 16:01:09 agc Exp $");
+__RCSID("$NetBSD: misc.c,v 1.28 2010/04/02 15:28:16 christos Exp $");
#endif
#include <sys/types.h>
@@ -1248,12 +1248,10 @@
va_list vp;
time_t t;
char buf[BUFSIZ * 2];
- char *cp;
int cc;
(void) time(&t);
- cp = ctime(&t);
- cc = snprintf(buf, sizeof(buf), "%.24s: netpgp: ", cp);
+ cc = snprintf(buf, sizeof(buf), "%.24s: netpgp: ", ctime(&t));
va_start(vp, fmt);
(void) vsnprintf(&buf[cc], sizeof(buf) - (size_t)cc, fmt, vp);
va_end(vp);
Home |
Main Index |
Thread Index |
Old Index