libgo: Update to weekly.2011-11-02.
From-SVN: r181964
This commit is contained in:
parent
02e9018f16
commit
2fd401c8f1
499 changed files with 4056 additions and 4239 deletions
|
@ -5,14 +5,14 @@
|
|||
package syslog
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
"os"
|
||||
)
|
||||
|
||||
// unixSyslog opens a connection to the syslog daemon running on the
|
||||
// local machine using a Unix domain socket.
|
||||
|
||||
func unixSyslog() (conn serverConn, err os.Error) {
|
||||
func unixSyslog() (conn serverConn, err error) {
|
||||
logTypes := []string{"unixgram", "unix"}
|
||||
logPaths := []string{"/dev/log", "/var/run/syslog"}
|
||||
var raddr string
|
||||
|
@ -27,5 +27,5 @@ func unixSyslog() (conn serverConn, err os.Error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
return nil, os.NewError("Unix syslog delivery error")
|
||||
return nil, errors.New("Unix syslog delivery error")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue