[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Void functions returning NULL

From: Tim Auckland
Subject: Void functions returning NULL
Date: Thu, 12 Sep 2002 10:28:41 -0700


I just tried to compile cfengine 2.0.4 on HP-UX 11 with HP's C compiler.

The compile failed in cfservd.c where several functions have been
declared "void" but contain one of more "return NULL" instructions.
HP's C compiler doesn't let you get away with this (and I'm not

Commenting out the NULLs fixes the problem.

(It still complains a lot about incorrect types where "char" and
"unsigned char" have been freely mixed and also "void" and "void*", but
those at least don't prevent compilation).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]