diff options
author | obrien <obrien@FreeBSD.org> | 2003-05-04 00:43:39 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-05-04 00:43:39 +0000 |
commit | bef29d279be2b25e16fa173fb9f5f5117075524e (patch) | |
tree | 7a446d24491eedaece8e30c171d5095502acf048 /libexec/rlogind/rlogind.c | |
parent | f0f17ca454aefbd85b2395870943385e9fad19fb (diff) | |
download | FreeBSD-src-bef29d279be2b25e16fa173fb9f5f5117075524e.zip FreeBSD-src-bef29d279be2b25e16fa173fb9f5f5117075524e.tar.gz |
Fix a sign/unsigned comparison.
Diffstat (limited to 'libexec/rlogind/rlogind.c')
-rw-r--r-- | libexec/rlogind/rlogind.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index cdc62a6..b4a0418 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -38,6 +38,7 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static const char copyright[] = "@(#) Copyright (c) 1983, 1988, 1989, 1993\n\ @@ -45,12 +46,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -#if 0 static const char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); /* * remote login server: @@ -343,7 +343,7 @@ control(int pty, char *cp, int n) { struct winsize w; - if (n < 4+sizeof (w) || cp[2] != 's' || cp[3] != 's') + if (n < 4 + (int)sizeof(w) || cp[2] != 's' || cp[3] != 's') return (0); oobdata[0] &= ~TIOCPKT_WINDOW; /* we know he heard */ bcopy(cp+4, (char *)&w, sizeof(w)); |