constify
This commit is contained in:
parent
b500df69ab
commit
9525895f88
|
@ -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;
|
||||
|
|
|
@ -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 @@ void encode(char *, char *, int);
|
|||
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 *, ...)
|
||||
|
|
Loading…
Reference in New Issue