diff options
author | markm <markm@FreeBSD.org> | 2001-12-03 12:16:40 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-03 12:16:40 +0000 |
commit | c7155665d1c77d730c31da2a9c64ddd8f81ae2d9 (patch) | |
tree | f0678f8f651c7ab8c70d21fa17768285bf6e7e30 | |
parent | 7138baa87dbcf2f133ee99c501eef74f6cec30ce (diff) | |
download | FreeBSD-src-c7155665d1c77d730c31da2a9c64ddd8f81ae2d9.zip FreeBSD-src-c7155665d1c77d730c31da2a9c64ddd8f81ae2d9.tar.gz |
More help for alpha WARNS=2. This code is, erm, unusual. Anyone who
feels like rewriting it will meet no objection from me.
-rw-r--r-- | contrib/telnet/telnetd/sys_term.c | 8 | ||||
-rw-r--r-- | crypto/telnet/telnetd/sys_term.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/telnet/telnetd/sys_term.c b/contrib/telnet/telnetd/sys_term.c index eff9b1e..385655d 100644 --- a/contrib/telnet/telnetd/sys_term.c +++ b/contrib/telnet/telnetd/sys_term.c @@ -1245,14 +1245,14 @@ addarg(char **argv, const char *val) } for (cpp = argv; *cpp; cpp++) ; - if (cpp == &argv[(int)argv[-1]]) { + if (cpp == &argv[(long)argv[-1]]) { --argv; - *argv = (char *)((int)(*argv) + 10); - argv = (char **)realloc(argv, sizeof(*argv)*((int)(*argv) + 2)); + *argv = (char *)((long)(*argv) + 10); + argv = (char **)realloc(argv, sizeof(*argv)*((long)(*argv) + 2)); if (argv == NULL) return(NULL); argv++; - cpp = &argv[(int)argv[-1] - 10]; + cpp = &argv[(long)argv[-1] - 10]; } *cpp++ = strdup(val); *cpp = 0; diff --git a/crypto/telnet/telnetd/sys_term.c b/crypto/telnet/telnetd/sys_term.c index eff9b1e..385655d 100644 --- a/crypto/telnet/telnetd/sys_term.c +++ b/crypto/telnet/telnetd/sys_term.c @@ -1245,14 +1245,14 @@ addarg(char **argv, const char *val) } for (cpp = argv; *cpp; cpp++) ; - if (cpp == &argv[(int)argv[-1]]) { + if (cpp == &argv[(long)argv[-1]]) { --argv; - *argv = (char *)((int)(*argv) + 10); - argv = (char **)realloc(argv, sizeof(*argv)*((int)(*argv) + 2)); + *argv = (char *)((long)(*argv) + 10); + argv = (char **)realloc(argv, sizeof(*argv)*((long)(*argv) + 2)); if (argv == NULL) return(NULL); argv++; - cpp = &argv[(int)argv[-1] - 10]; + cpp = &argv[(long)argv[-1] - 10]; } *cpp++ = strdup(val); *cpp = 0; |