diff options
author | 2018-12-11 18:03:11 +0000 | |
---|---|---|
committer | 2018-12-11 18:03:11 +0000 | |
commit | 83b130e1e09b9efa8bdd93d34b6360c72612dcf0 (patch) | |
tree | 7120fa91beeb73c53dbbf934595f5161923a23aa | |
parent | Add PN_XNUM support to libbfd so objdump and gdb can handle core (diff) | |
download | wireguard-openbsd-83b130e1e09b9efa8bdd93d34b6360c72612dcf0.tar.xz wireguard-openbsd-83b130e1e09b9efa8bdd93d34b6360c72612dcf0.zip |
Convert some variables with non-negative values to unsigned type
to avoid comparison of integers of different signs.
from Jan Klemkow; OK tb@
-rw-r--r-- | libexec/ftpd/ftpd.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index a1d1998ffae..ccbf4c59695 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.223 2016/09/03 15:00:48 jca Exp $ */ +/* $OpenBSD: ftpd.c,v 1.224 2018/12/11 18:03:11 bluhm Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -390,10 +390,10 @@ main(int argc, char *argv[]) endpwent(); if (daemon_mode) { - int *fds, i, fd; + int *fds, fd; struct pollfd *pfds; struct addrinfo hints, *res, *res0; - nfds_t n; + nfds_t n, i; /* * Detach from parent. @@ -1809,8 +1809,8 @@ statcmd(void) ispassive++; goto printaddr; } else if (usedefault == 0) { - size_t alen; - int af, i; + size_t alen, i; + int af; su = (union sockunion *)&data_dest; printaddr: @@ -2545,7 +2545,8 @@ guniquefd(char *local, char **nam) { static char new[PATH_MAX]; struct stat st; - int count, len, fd; + size_t len; + int count, fd; char *cp; cp = strrchr(local, '/'); |