summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/cwd.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-12-02 13:48:40 +0000
committermarkm <markm@FreeBSD.org>2001-12-02 13:48:40 +0000
commit11e67a93424d6a1809a70fc2ef1afa71e49ea0cd (patch)
tree620c2f4d8cb09dac390014511238b22c1e62b4ac /usr.bin/doscmd/cwd.h
parentaeb55e91a2e891a1c2315cee7210f70caa798355 (diff)
downloadFreeBSD-src-11e67a93424d6a1809a70fc2ef1afa71e49ea0cd.zip
FreeBSD-src-11e67a93424d6a1809a70fc2ef1afa71e49ea0cd.tar.gz
WARNS=2 fixup
Diffstat (limited to 'usr.bin/doscmd/cwd.h')
-rw-r--r--usr.bin/doscmd/cwd.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/doscmd/cwd.h b/usr.bin/doscmd/cwd.h
index 4e61558..16c7474 100644
--- a/usr.bin/doscmd/cwd.h
+++ b/usr.bin/doscmd/cwd.h
@@ -45,9 +45,9 @@ ustrcat(u_char *s1, u_char *s2)
}
static inline u_char *
-ustrncat(u_char *s1, u_char *s2, size_t n)
+ustrncat(u_char *s1, const u_char *s2, size_t n)
{
- return((u_char *)strncat((char *)s1, (char *)s2, n));
+ return((u_char *)strncat((char *)s1, (const char *)s2, n));
}
static inline u_char *
@@ -63,15 +63,15 @@ ustrcmp(u_char *s1, u_char *s2)
}
static inline int
-ustrncmp(u_char *s1, u_char *s2, size_t n)
+ustrncmp(const u_char *s1, const u_char *s2, size_t n)
{
- return(strncmp((char *)s1, (char *)s2, n));
+ return(strncmp((const char *)s1, (const char *)s2, n));
}
static inline int
-ustrlen(u_char *s)
+ustrlen(const u_char *s)
{
- return(strlen((char *)s));
+ return(strlen((const char *)s));
}
static inline u_char *
@@ -81,9 +81,9 @@ ustrrchr(u_char *s, u_char c)
}
static inline u_char *
-ustrdup(u_char *s)
+ustrdup(const u_char *s)
{
- return((u_char *)strdup((char *)s));
+ return((u_char *)strdup((const char *)s));
}
static inline int
@@ -98,7 +98,7 @@ uaccess(u_char *s, int mode)
return(access((char *)s, mode));
}
-extern void init_path(int, u_char *, u_char *);
+extern void init_path(int, const u_char *, const u_char *);
extern void dos_makereadonly(int);
extern int dos_readonly(int);
extern u_char *dos_getcwd(int);
OpenPOWER on IntegriCloud