diff options
| author | Frederic Culot <culot@FreeBSD.org> | 2011-05-12 07:38:34 +0000 |
|---|---|---|
| committer | Frederic Culot <culot@FreeBSD.org> | 2011-05-12 07:38:34 +0000 |
| commit | 6d02f1e2398ca3f67bde0c32e7430d814cc336c1 (patch) | |
| tree | a0f9892095e47a9830c0adec5bbb578ae05efc22 /net/wackamole/files/patch-alarm.c | |
| parent | - Update to 2.5.4 (diff) | |
- Fix compilation errors with libpcap installed from ports and warnings
with clang
PR: ports/156968
Submitted by: Marcin Cieslak <saper@saper.info> (maintainer)
Diffstat (limited to 'net/wackamole/files/patch-alarm.c')
| -rw-r--r-- | net/wackamole/files/patch-alarm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wackamole/files/patch-alarm.c b/net/wackamole/files/patch-alarm.c new file mode 100644 index 000000000000..298786187c42 --- /dev/null +++ b/net/wackamole/files/patch-alarm.c @@ -0,0 +1,20 @@ +--- alarm.c.orig 2011-05-12 02:48:08.000000000 +0200 ++++ alarm.c 2011-05-12 02:48:40.000000000 +0200 +@@ -93,7 +93,7 @@ + timestamp[length] = ' '; + #ifdef HAVE_SYSLOG_H + if(syslog_flag) +- syslog(LOG_NOTICE, timestamp); ++ syslog(LOG_NOTICE, "%s", timestamp); + else + #endif + fwrite(timestamp, length+1, sizeof(char), stdout); +@@ -105,7 +105,7 @@ + int len = strlen(message)+100; + s = malloc(len);/*estimation*/ + vsnprintf(s,len,message, ap); +- syslog(LOG_NOTICE, s); ++ syslog(LOG_NOTICE, "%s", s); + free(s); + } + else |
