This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Small fix for misc/sys/syslog.h
- From: GOTO Masanori <gotom at debian dot or dot jp>
- To: libc-alpha at sources dot redhat dot com
- Cc: GOTO Masanori <gotom at debian dot or dot jp>
- Date: Mon, 14 Feb 2005 17:42:41 +0900
- Subject: [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. */