diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-10-19 19:53:06 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-10-19 19:53:06 +0000 |
commit | 33991ec8b7ad1633b5172fb0e73bd827cd6e77b2 (patch) | |
tree | 37c707301e63ea6555008ad671a429c56de7bde6 /usr.sbin/smtpd | |
parent | 94bbd10d6310ee51294332b859d32b26b05d932a (diff) |
fix compile time warning due to missing cast
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/client.c b/usr.sbin/smtpd/client.c index e5482230d7d..0ee14c2b506 100644 --- a/usr.sbin/smtpd/client.c +++ b/usr.sbin/smtpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.7 2009/10/03 10:02:43 jacekm Exp $ */ +/* $OpenBSD: client.c,v 1.8 2009/10/19 19:53:05 gilles Exp $ */ /* * Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net> @@ -315,7 +315,7 @@ client_data_fd(struct smtp_client *sp, int fd) if (fstat(fd, &sb) == -1) goto done; - if (sb.st_size > SIZE_T_MAX) + if ((size_t)sb.st_size > SIZE_T_MAX) goto done; if (!S_ISREG(sb.st_mode)) goto done; |