facility and prioritynames _again_ [was: Re: svn commit: trunk/uClibc/include/sys]

Bernhard Fischer rep.dot.nop at gmail.com
Wed Jun 11 12:25:25 UTC 2008


On Thu, Jun 05, 2008 at 07:44:10PM -0700, vda at uclibc.org wrote:
>Author: vda
>Date: 2008-06-05 19:44:10 -0700 (Thu, 05 Jun 2008)
>New Revision: 22241
>
>Log:
>Heed a warning: "string" was assigned to char*, changing that to const char*
>
>
>
>Modified:
>   trunk/uClibc/include/sys/syslog.h
>
>
>Changeset:
>Modified: trunk/uClibc/include/sys/syslog.h
>===================================================================
>--- trunk/uClibc/include/sys/syslog.h	2008-06-06 02:42:57 UTC (rev 22240)
>+++ trunk/uClibc/include/sys/syslog.h	2008-06-06 02:44:10 UTC (rev 22241)
>@@ -67,8 +67,8 @@
> 				/* mark "facility" */
> #define	INTERNAL_MARK	LOG_MAKEPRI(LOG_NFACILITIES, 0)
> typedef struct _code {
>-	char	*c_name;
>-	int	c_val;
>+	const char      *c_name;
>+	int             c_val;
> } CODE;


In file included from
/there.pentium4/build_i686/staging_dir/usr/include/syslog.h:1,
                 from sysklogd/syslogd.c:19:
/there.pentium4/build_i686/staging_dir/usr/include/sys/syslog.h:77:
error: conflicting types for 'prioritynames'
sysklogd/logger.c:30: error: previous declaration of 'prioritynames' was
here
/there.pentium4/build_i686/staging_dir/usr/include/sys/syslog.h:128:
error: conflicting types for 'facilitynames'
sysklogd/logger.c:31: error: previous declaration of 'facilitynames' was
here
make[1]: *** [busybox_unstripped.o] Error 1

Please fix busybox/sysklogd/logger.c accordingly and make sure that this
works when compiling against the 0.9.29 release (which doesn't have the
change above).

thanks,



More information about the uClibc mailing list