summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
committerbrian <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
commit6f864d0a973a7f3987d73132be311b7cfbd1ccfc (patch)
treefb5af1860e245ef67196527d9ba46e5c9e284bf6 /usr.sbin/ppp/systems.c
parent2f8e87b45e5735ee9774fce8bc8ffaf1fdc72657 (diff)
downloadFreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.zip
FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.tar.gz
Make ppp WARNS=5 clean
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r--usr.sbin/ppp/systems.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c
index 24f58a5..36cb4e9 100644
--- a/usr.sbin/ppp/systems.c
+++ b/usr.sbin/ppp/systems.c
@@ -70,7 +70,8 @@ InterpretArg(const char *from, char *to)
{
char *ptr, *startto, *endto;
struct passwd *pwd;
- int len, instring;
+ int instring;
+ size_t len;
const char *env;
instring = 0;
@@ -106,7 +107,7 @@ InterpretArg(const char *from, char *to)
ptr = strchr(from+2, '}');
if (ptr) {
len = ptr - from - 2;
- if (endto - to < len )
+ if (endto - to < (int)len )
len = endto - to;
if (len) {
strncpy(to, from+2, len);
@@ -137,7 +138,7 @@ InterpretArg(const char *from, char *to)
case '~':
ptr = strchr(++from, '/');
- len = ptr ? ptr - from : strlen(from);
+ len = ptr ? (size_t)(ptr - from) : strlen(from);
if (len == 0)
pwd = getpwuid(ID0realuid());
else {
OpenPOWER on IntegriCloud