Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/newsyslog Simple const.



details:   https://anonhg.NetBSD.org/src/rev/d7d6820aba42
branches:  trunk
changeset: 495006:d7d6820aba42
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jul 19 10:52:35 2000 +0000

description:
Simple const.

diffstat:

 usr.bin/newsyslog/newsyslog.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0879438ac6aa -r d7d6820aba42 usr.bin/newsyslog/newsyslog.c
--- a/usr.bin/newsyslog/newsyslog.c     Wed Jul 19 10:42:22 2000 +0000
+++ b/usr.bin/newsyslog/newsyslog.c     Wed Jul 19 10:52:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newsyslog.c,v 1.33 2000/07/19 07:22:53 enami Exp $     */
+/*     $NetBSD: newsyslog.c,v 1.34 2000/07/19 10:52:35 ad Exp $        */
 
 /*
  * Copyright (c) 1999, 2000 Andrew Doran <ad%NetBSD.org@localhost>
@@ -55,7 +55,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: newsyslog.c,v 1.33 2000/07/19 07:22:53 enami Exp $");
+__RCSID("$NetBSD: newsyslog.c,v 1.34 2000/07/19 10:52:35 ad Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -394,7 +394,8 @@
        struct stat sb;
        size_t size;
        int age, trim;
-       char tmp[MAXPATHLEN], *reason;
+       char tmp[MAXPATHLEN];
+       const char *reason;
        time_t now;
 
        now = time(NULL);



Home | Main Index | Thread Index | Old Index