diff options
Diffstat (limited to 'libgo/go/syslog/syslog_c.c')
-rw-r--r-- | libgo/go/syslog/syslog_c.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libgo/go/syslog/syslog_c.c b/libgo/go/syslog/syslog_c.c deleted file mode 100644 index f49b9ff..0000000 --- a/libgo/go/syslog/syslog_c.c +++ /dev/null @@ -1,19 +0,0 @@ -/* syslog_c.c -- call syslog for Go. - - Copyright 2011 The Go Authors. All rights reserved. - Use of this source code is governed by a BSD-style - license that can be found in the LICENSE file. */ - -#include <syslog.h> - -/* We need to use a C function to call the syslog function, because we - can't represent a C varargs function in Go. */ - -void syslog_c(int, const char*) - asm ("libgo_syslog.syslog.syslog_c"); - -void -syslog_c (int priority, const char *msg) -{ - syslog (priority, "%s", msg); -} |