Module Name:    src
Committed By:   christos
Date:           Thu Mar 17 00:21:04 UTC 2016

Modified Files:
        src/libexec/getty: main.c

Log Message:
Add volatile for gcc 5


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/libexec/getty/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/getty/main.c
diff -u src/libexec/getty/main.c:1.64 src/libexec/getty/main.c:1.65
--- src/libexec/getty/main.c:1.64	Mon Aug 12 09:54:33 2013
+++ src/libexec/getty/main.c	Wed Mar 16 20:21:04 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.64 2013/08/12 13:54:33 joerg Exp $	*/
+/*	$NetBSD: main.c,v 1.65 2016/03/17 00:21:04 christos Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1993
@@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "from: @(#)main.c	8.1 (Berkeley) 6/20/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.64 2013/08/12 13:54:33 joerg Exp $");
+__RCSID("$NetBSD: main.c,v 1.65 2016/03/17 00:21:04 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -183,7 +183,8 @@ int
 main(int argc, char *argv[], char *envp[])
 {
 	const char *progname;
-	int repcnt = 0, failopenlogged = 0, first_time = 1;
+	int repcnt = 0, failopenlogged = 0;
+	volatile int first_time = 1;
 	struct rlimit limit;
 	struct passwd *pw;
 	int rval;

Reply via email to