Re: compiler warnings and syscall macros
From: Tommy Reynolds
Date: Mon Sep 22 2003 - 16:52:01 EST
Uttered Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx>, spoke thus:
> Would it hurt anything if I put in an explicit cast, like this?
>
> __sc_ret = (unsigned long) -1;
Why not do the obvious:
__sc_ret = -1UL;
and use a proper constant?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/