summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2012-03-17 21:54:12 +0000
committermartin <martin@NetBSD.org>2012-03-17 21:54:12 +0000
commitfa2645ac983a40bcd19aaa2f4f02845f79d7e152 (patch)
treee6dbf16eb5f82cb49751428c871d0e4bea46ce32
parentefc4ebd336e4d2284f541ddb8bbf4d2192f94f05 (diff)
Remove some lint
-rw-r--r--sys/sys/exec_aout.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/exec_aout.h b/sys/sys/exec_aout.h
index bfbfda48df2..b434dd89f8d 100644
--- a/sys/sys/exec_aout.h
+++ b/sys/sys/exec_aout.h
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_aout.h,v 1.39 2009/08/20 22:07:49 he Exp $ */
+/* $NetBSD: exec_aout.h,v 1.40 2012/03/17 21:54:12 martin Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -88,16 +88,16 @@ struct exec {
* The macros below will set/get the needed fields.
*/
#define N_GETMAGIC(ex) \
- ((((ex).a_midmag)&0xffff0000) ? \
+ ((((uint32_t)(ex).a_midmag)&0xffff0000) ? \
(be32toh((uint32_t)((ex).a_midmag))&0xffff) : ((ex).a_midmag))
#define N_GETMAGIC2(ex) \
- ((((ex).a_midmag)&0xffff0000) ? \
+ ((((uint32_t)(ex).a_midmag)&0xffff0000) ? \
(be32toh((uint32_t)((ex).a_midmag))&0xffff) : (((ex).a_midmag) | 0x10000))
#define N_GETMID(ex) \
- ((((ex).a_midmag)&0xffff0000) ? \
+ ((((uint32_t)(ex).a_midmag)&0xffff0000) ? \
((be32toh((uint32_t)((ex).a_midmag))>>16)&0x03ff) : MID_ZERO)
#define N_GETFLAG(ex) \
- ((((ex).a_midmag)&0xffff0000) ? \
+ ((((uint32_t)(ex).a_midmag)&0xffff0000) ? \
((be32toh((uint32_t)((ex).a_midmag))>>26)&0x3f) : 0)
#define N_SETMAGIC(ex,mag,mid,flag) \
((ex).a_midmag = htobe32((uint32_t) \