2008/10/27 Lars Marowsky-Bree <[EMAIL PROTECTED]>: > On 2008-10-16T17:28:54, Xinwei Hu <[EMAIL PROTECTED]> wrote: > > sfex_daemon.c:288: warning: format '%d' expects type 'int', but argument 5 > has type 'long unsigned int' > sfex_daemon.c:357: warning: ignoring return value of 'daemon', declared with > attribute warn_unused_result > In function 'open', > inlined from 'main' at sfex_daemon.c:359: > /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared > with attribute error: open with O_CREAT in second argument needs 3 arguments > gmake[1]: *** [sfex_daemon-sfex_daemon.o] Error 1 > Am I miscompiling something?
I didn't see this error before. What options to gcc should I use ? Patch attached. > > Regards, > Lars > > -- > Teamlead Kernel, SuSE Labs, Research and Development > SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) > "Experience is the name everyone gives to their mistakes." -- Oscar Wilde > > _______________________________________________________ > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ >
sfex_daemon.diff
Description: Binary data
_______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/