summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2013-11-13 17:53:54 +0000
committerstsp <stsp@openbsd.org>2013-11-13 17:53:54 +0000
commit2f2081d8209158d3e81d7837a41890f61c929dc9 (patch)
treed13dc7681633792bb2bcbac576f54c54429d96c6
parentAdd missing includes. (diff)
downloadwireguard-openbsd-2f2081d8209158d3e81d7837a41890f61c929dc9.tar.xz
wireguard-openbsd-2f2081d8209158d3e81d7837a41890f61c929dc9.zip
Make fusebuf.fh_err signed, it might store negative errno values; ok syl
-rw-r--r--sys/sys/fusebuf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/fusebuf.h b/sys/sys/fusebuf.h
index d483837d90b..fc5a0645d2f 100644
--- a/sys/sys/fusebuf.h
+++ b/sys/sys/fusebuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fusebuf.h,v 1.6 2013/11/11 14:18:49 stsp Exp $ */
+/* $OpenBSD: fusebuf.h,v 1.7 2013/11/13 17:53:54 stsp Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon
* Copyright (c) 2013 Martin Pieuchot
@@ -29,7 +29,7 @@
struct fb_hdr {
SIMPLEQ_ENTRY(fusebuf) fh_next; /* next buffer in chain */
size_t fh_len; /* Amount of data */
- uint32_t fh_err; /* Err code to pass back */
+ int fh_err; /* errno to pass back */
int fh_type; /* type of data */
ino_t fh_ino; /* Inode of this fusebuf */
uint64_t fh_uuid; /* Uuid to track the answer */