Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/getty Add volatile for gcc 5



details:   https://anonhg.NetBSD.org/src/rev/105e0e27401a
branches:  trunk
changeset: 344216:105e0e27401a
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 17 00:21:04 2016 +0000

description:
Add volatile for gcc 5

diffstat:

 libexec/getty/main.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b053fca10e0c -r 105e0e27401a libexec/getty/main.c
--- a/libexec/getty/main.c      Thu Mar 17 00:19:36 2016 +0000
+++ b/libexec/getty/main.c      Thu Mar 17 00:21:04 2016 +0000
@@ -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 @@
 #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 @@
 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;



Home | Main Index | Thread Index | Old Index