diff options
author | das <das@FreeBSD.org> | 2005-04-17 01:06:37 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2005-04-17 01:06:37 +0000 |
commit | e2b9708f180fa561f49f9097900a2f7eed03e290 (patch) | |
tree | e74303f2b46414b0392a8e107465ed851ed26e6f /libexec | |
parent | 80df10c1f4bb44cf61c61087c36f17d9234537af (diff) | |
download | FreeBSD-src-e2b9708f180fa561f49f9097900a2f7eed03e290.zip FreeBSD-src-e2b9708f180fa561f49f9097900a2f7eed03e290.tar.gz |
s/int/size_t/ as appropriate.
Noticed by: bde
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rexecd/rexecd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c index b056528..54423bd 100644 --- a/libexec/rexecd/rexecd.c +++ b/libexec/rexecd/rexecd.c @@ -84,7 +84,7 @@ struct sockaddr_storage sa; char default_shell[] = _PATH_BSHELL; static void doit(struct sockaddr *); -static void getstr(char *, int, const char *); +static void getstr(char *, size_t, const char *); static void error(const char *fmt, ...); int no_uid_0 = 1; @@ -133,7 +133,7 @@ static void doit(struct sockaddr *fromp) { char *cmdbuf, *cp; - int maxcmdlen; + size_t maxcmdlen; char user[16], pass[16]; struct passwd *pwd; const void *item; @@ -144,7 +144,7 @@ doit(struct sockaddr *fromp) char buf[BUFSIZ], sig; int one = 1; - maxcmdlen = (int)sysconf(_SC_ARG_MAX); + maxcmdlen = sysconf(_SC_ARG_MAX); if (maxcmdlen <= 0 || (cmdbuf = malloc(maxcmdlen)) == NULL) exit(1); @@ -310,7 +310,7 @@ error(const char *fmt, ...) } static void -getstr(char *buf, int cnt, const char *field) +getstr(char *buf, size_t cnt, const char *field) { char c; |