diff options
Diffstat (limited to 'libgo/go/syslog/syslog_libc.go')
-rw-r--r-- | libgo/go/syslog/syslog_libc.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libgo/go/syslog/syslog_libc.go b/libgo/go/syslog/syslog_libc.go index 044351d..fb98ad7 100644 --- a/libgo/go/syslog/syslog_libc.go +++ b/libgo/go/syslog/syslog_libc.go @@ -10,11 +10,10 @@ package syslog import ( "fmt" - "os" "syscall" ) -func unixSyslog() (conn serverConn, err os.Error) { +func unixSyslog() (conn serverConn, err error) { return libcConn(0), nil } @@ -22,16 +21,16 @@ type libcConn int func syslog_c(int, *byte) -func (libcConn) writeBytes(p Priority, prefix string, b []byte) (int, os.Error) { +func (libcConn) writeBytes(p Priority, prefix string, b []byte) (int, error) { syslog_c(int(p), syscall.StringBytePtr(fmt.Sprintf("%s: %s", prefix, b))) return len(b), nil } -func (libcConn) writeString(p Priority, prefix string, s string) (int, os.Error) { +func (libcConn) writeString(p Priority, prefix string, s string) (int, error) { syslog_c(int(p), syscall.StringBytePtr(fmt.Sprintf("%s: %s", prefix, s))) return len(s), nil } -func (libcConn) close() os.Error { +func (libcConn) close() error { return nil } |