summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcrelay/dispatch.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2017-04-04 15:52:13 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2017-04-04 15:52:13 +0000
commit4beed404f24b334fdee681048ad9b1272e775939 (patch)
tree4a336a85a640303cb395d8f2ba45714fd1b81ccd /usr.sbin/dhcrelay/dispatch.c
parentb95aa85ce90bda623d048d8dadbebf256f157214 (diff)
The unsigned result cannot be -1, turn it into a signed variable.
OK rzalamena@
Diffstat (limited to 'usr.sbin/dhcrelay/dispatch.c')
-rw-r--r--usr.sbin/dhcrelay/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/dispatch.c b/usr.sbin/dhcrelay/dispatch.c
index c33130a425d..d6fece8ad02 100644
--- a/usr.sbin/dhcrelay/dispatch.c
+++ b/usr.sbin/dhcrelay/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.20 2017/03/15 14:31:49 rzalamena Exp $ */
+/* $OpenBSD: dispatch.c,v 1.21 2017/04/04 15:52:12 reyk Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -342,7 +342,7 @@ void
got_one(struct protocol *l)
{
struct packet_ctx pc;
- size_t result;
+ ssize_t result;
union {
/*
* Packet input buffer. Must be as large as largest