summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-27 21:05:05 +0000
committerphk <phk@FreeBSD.org>2002-09-27 21:05:05 +0000
commitf0a4656fe324bd391d2057ac5a37d5fecb9371e4 (patch)
tree2ffc8552e13d11634c25c57ec6a10ee19126f395 /sys/geom/geom.h
parent7f365f22fc46386a368e19f650f3f78ea4a5dd6c (diff)
downloadFreeBSD-src-f0a4656fe324bd391d2057ac5a37d5fecb9371e4.zip
FreeBSD-src-f0a4656fe324bd391d2057ac5a37d5fecb9371e4.tar.gz
Various no-ops:
Add a __unused. Make the 2byte decoder functions return 16 bits for the benefits of picky lints. No need to grab giant around a tsleep() when we have a timeout. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r--sys/geom/geom.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 018c8f6..a5f35f1 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -295,9 +295,9 @@ extern struct sx topology_lock;
#define GEOMGETCONF _IOWR('G', 0, struct sbuf)
/* geom_enc.c */
-uint32_t g_dec_be2(u_char *p);
+uint16_t g_dec_be2(u_char *p);
uint32_t g_dec_be4(u_char *p);
-uint32_t g_dec_le2(u_char *p);
+uint16_t g_dec_le2(u_char *p);
uint32_t g_dec_le4(u_char *p);
uint64_t g_dec_le8(u_char *p);
void g_enc_le4(u_char *p, uint32_t u);
OpenPOWER on IntegriCloud