Module Name:    src
Committed By:   ginsbach
Date:           Wed Jul 22 13:33:59 UTC 2015

Modified Files:
        src/lib/libc/time: strptime.c

Log Message:
More KNF style changes -- consistent use of whitespace in #defines.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libc/time/strptime.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/time/strptime.c
diff -u src/lib/libc/time/strptime.c:1.46 src/lib/libc/time/strptime.c:1.47
--- src/lib/libc/time/strptime.c:1.46	Mon Jul 20 14:37:11 2015
+++ src/lib/libc/time/strptime.c	Wed Jul 22 13:33:59 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: strptime.c,v 1.46 2015/07/20 14:37:11 ginsbach Exp $	*/
+/*	$NetBSD: strptime.c,v 1.47 2015/07/22 13:33:59 ginsbach Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strptime.c,v 1.46 2015/07/20 14:37:11 ginsbach Exp $");
+__RCSID("$NetBSD: strptime.c,v 1.47 2015/07/22 13:33:59 ginsbach Exp $");
 #endif
 
 #include "namespace.h"
@@ -63,19 +63,19 @@ static const u_char *find_string(const u
  */
 #define ALT_E			0x01
 #define ALT_O			0x02
-#define	LEGAL_ALT(x)		{ if (alt_format & ~(x)) return NULL; }
+#define LEGAL_ALT(x)		{ if (alt_format & ~(x)) return NULL; }
 
-#define	S_YEAR		(1 << 0)
-#define	S_MON		(1 << 1)
-#define	S_YDAY		(1 << 2)
-#define	S_MDAY		(1 << 3)
-#define	S_WDAY		(1 << 4)
-
-#define HAVE_MDAY(s)	(s & S_MDAY)
-#define HAVE_MON(s)	(s & S_MON)
-#define HAVE_WDAY(s)	(s & S_WDAY)
-#define HAVE_YDAY(s)	(s & S_YDAY)
-#define HAVE_YEAR(s)	(s & S_YEAR)
+#define S_YEAR			(1 << 0)
+#define S_MON			(1 << 1)
+#define S_YDAY			(1 << 2)
+#define S_MDAY			(1 << 3)
+#define S_WDAY			(1 << 4)
+
+#define HAVE_MDAY(s)		(s & S_MDAY)
+#define HAVE_MON(s)		(s & S_MON)
+#define HAVE_WDAY(s)		(s & S_WDAY)
+#define HAVE_YDAY(s)		(s & S_YDAY)
+#define HAVE_YEAR(s)		(s & S_YEAR)
 
 static char gmt[] = { "GMT" };
 static char utc[] = { "UTC" };

Reply via email to