This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Small fix for misc/sys/syslog.h


This patches does one modification and fixes one typo.  The type of
c_name in struct _code should be const char * for prioritynames
meanings - recent BSDs are also modified likewise.

Regards,
-- gotom

2005-02-14  GOTO Masanori  <gotom@debian.or.jp>

	* misc/sys/syslog.h: Change CODE c_name type to const char *.
	* misc/sys/syslog.h: Fix typo.

Index: misc/sys/syslog.h
===================================================================
RCS file: /cvs/glibc/libc/misc/sys/syslog.h,v
retrieving revision 1.13
diff -u -p -r1.13 syslog.h
--- misc/sys/syslog.h	30 Aug 2003 09:27:50 -0000	1.13
+++ misc/sys/syslog.h	26 Jan 2005 13:18:03 -0000
@@ -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;
 
 CODE prioritynames[] =
@@ -168,7 +168,7 @@ CODE facilitynames[] =
 
 __BEGIN_DECLS
 
-/* Close desriptor used to write to system logger.
+/* Close descriptor used to write to system logger.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]