Chameleon

Issue 223: fdisk compile error

Reported by Louis D, Feb 21, 2012

When I try compiling all from scratch with Xcode 4.3, I get this 
error in compiling fdisk.


================= Making all in fdisk =================
	[CC32] misc.c
misc.c:170:12: error: promoted type 'int' of K&R function 
parameter is not
      compatible with the parameter type 'u_int16_t' (aka 'unsigned 
short')
      declared in a previous prototype [-Werror]
        u_int16_t l;
                  ^
./misc.h:70:37: note: previous declaration is here
void putshort __P((void *, u_int16_t));
                                    ^
/usr/include/sys/cdefs.h:86:21: note: expanded from macro '__P'
#define __P(protos)     protos          /* full-blown ANSI C */


Thank you!

Comment 1 by Evan Lojewski, Feb 23, 2012

Status: Fixed

Created: 12 years 2 months ago by Louis D

Updated: 12 years 2 months ago

Status: Fixed

Followed by: 1 person

Labels:
Priority:Medium
Type:Defect