Skip to content

Commit

Permalink
* misc/bits/syslog.h (syslog): Remove extraneous argument from
Browse files Browse the repository at this point in the history
the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to 
__syslog_chk.
2007-09-19  Jakub Jelinek  <jakub@redhat.com>

	* misc/bits/syslog.h (syslog): Remove extraneous argument from
	the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
	__syslog_chk.
  • Loading branch information
Jakub Jelinek committed Sep 18, 2007
1 parent 76c0bea commit ddf51ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2007-09-19 Jakub Jelinek <jakub@redhat.com>

* misc/bits/syslog.h (syslog): Remove extraneous argument from
the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
__syslog_chk.

2007-09-18 Jakub Jelinek <jakub@redhat.com>

* locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
Expand Down
4 changes: 2 additions & 2 deletions misc/bits/syslog.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ extern void __syslog_chk (int __pri, int __flag, __const char *__fmt, ...)

#ifdef __va_arg_pack
__extern_always_inline void
syslog (int __pri, int __flag, __const char *__fmt, ...)
syslog (int __pri, __const char *__fmt, ...)
{
return __syslog_chk (__pri, __flag, __fmt, __va_arg_pack ());
return __syslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
}
#elif !defined __cplusplus
# define syslog(pri, ...) \
Expand Down

0 comments on commit ddf51ec

Please sign in to comment.