Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Remove some lint
details: https://anonhg.NetBSD.org/src/rev/876818a4e772
branches: trunk
changeset: 778150:876818a4e772
user: martin <martin%NetBSD.org@localhost>
date: Sat Mar 17 21:54:12 2012 +0000
description:
Remove some lint
diffstat:
sys/sys/exec_aout.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r fa400734599c -r 876818a4e772 sys/sys/exec_aout.h
--- a/sys/sys/exec_aout.h Sat Mar 17 21:45:39 2012 +0000
+++ b/sys/sys/exec_aout.h Sat Mar 17 21:54:12 2012 +0000
@@ -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 @@
* 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) \
Home |
Main Index |
Thread Index |
Old Index