Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sup/source constify



details:   https://anonhg.NetBSD.org/src/rev/447f94e06d11
branches:  trunk
changeset: 769754:447f94e06d11
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 21 19:32:59 2011 +0000

description:
constify

diffstat:

 usr.sbin/sup/source/path.c      |  6 +++---
 usr.sbin/sup/source/supextern.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 2cc6b0f0943c -r 447f94e06d11 usr.sbin/sup/source/path.c
--- a/usr.sbin/sup/source/path.c        Wed Sep 21 18:15:59 2011 +0000
+++ b/usr.sbin/sup/source/path.c        Wed Sep 21 19:32:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: path.c,v 1.4 2002/07/10 20:19:41 wiz Exp $     */
+/*     $NetBSD: path.c,v 1.5 2011/09/21 19:32:59 christos Exp $        */
 
 /*
  * Copyright (c) 1991 Carnegie Mellon University
@@ -62,11 +62,11 @@
 #include "supextern.h"
 
 void
-path(char *original, char *direc, char *file)
+path(const char *original, char *direc, char *file)
 {
        char *y;
        /* x is direc */
-       char *p;
+       const char *p;
 
        /* copy and note the end */
        p = original;
diff -r 2cc6b0f0943c -r 447f94e06d11 usr.sbin/sup/source/supextern.h
--- a/usr.sbin/sup/source/supextern.h   Wed Sep 21 18:15:59 2011 +0000
+++ b/usr.sbin/sup/source/supextern.h   Wed Sep 21 19:32:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: supextern.h,v 1.22 2009/10/17 22:26:13 christos Exp $  */
+/*     $NetBSD: supextern.h,v 1.23 2011/09/21 19:32:59 christos Exp $  */
 
 struct stat;
 
@@ -39,7 +39,7 @@
 char *nxtarg(char **, const char *);
 
 /* path.c */
-void path(char *, char *, char *);
+void path(const char *, char *, char *);
 
 /* quit.c */
 void quit(int, const char *, ...)



Home | Main Index | Thread Index | Old Index