summaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-02-06 23:22:00 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-02-06 23:22:00 +0000
commit3318608864fcb14a5c03e4cf97495dbd6d23bfd7 (patch)
treee4103eeca8e2180f8253c294c942f6aa1de9c6f2 /libexec/ftpd
parent80c4a98d1fdcc445a241d9895e7b7e684aacec71 (diff)
SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/monitor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ftpd/monitor.c b/libexec/ftpd/monitor.c
index 0f42cb7416d..24a37a4b722 100644
--- a/libexec/ftpd/monitor.c
+++ b/libexec/ftpd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.21 2014/08/25 07:50:25 doug Exp $ */
+/* $OpenBSD: monitor.c,v 1.22 2015/02/06 23:21:58 millert Exp $ */
/*
* Copyright (c) 2004 Moritz Jodeit <moritz@openbsd.org>
@@ -23,11 +23,11 @@
#include <errno.h>
#include <fcntl.h>
-#include <limits.h>
#include <paths.h>
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -266,7 +266,7 @@ handle_cmds(void)
debugmsg("CMD_USER received");
recv_data(fd_slave, &len, sizeof(len));
- if (len == SIZE_T_MAX)
+ if (len == SIZE_MAX)
fatalx("monitor received invalid user length");
if ((name = malloc(len + 1)) == NULL)
fatalx("malloc: %m");
@@ -281,7 +281,7 @@ handle_cmds(void)
debugmsg("CMD_PASS received");
recv_data(fd_slave, &len, sizeof(len));
- if (len == SIZE_T_MAX)
+ if (len == SIZE_MAX)
fatalx("monitor received invalid pass length");
if ((pw = malloc(len + 1)) == NULL)
fatalx("malloc: %m");