diff options
author | Simo Sorce <simo@redhat.com> | 2013-11-21 12:14:36 -0500 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2013-11-22 14:41:24 +0100 |
commit | db8099da53167ca4ebf3b9f5ef0c702ddfe8b366 (patch) | |
tree | 98561c070258984caa8d0921088d1b2f35d4dbd8 /proxy/src/gp_socket.c | |
parent | 27ae6c5b8b37a8086800cd1a4edbb01a7fddfad6 (diff) | |
download | gss-proxy-db8099da53167ca4ebf3b9f5ef0c702ddfe8b366.tar.gz gss-proxy-db8099da53167ca4ebf3b9f5ef0c702ddfe8b366.tar.xz gss-proxy-db8099da53167ca4ebf3b9f5ef0c702ddfe8b366.zip |
Use gp_strerror() everywhere instead of strerror()
https://fedorahosted.org/gss-proxy/ticket/111
Reviewed-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src/gp_socket.c')
-rw-r--r-- | proxy/src/gp_socket.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/proxy/src/gp_socket.c b/proxy/src/gp_socket.c index b1851a2..3e8afc5 100644 --- a/proxy/src/gp_socket.c +++ b/proxy/src/gp_socket.c @@ -184,7 +184,7 @@ struct gp_sock_ctx *init_unix_socket(struct gssproxy_ctx *gpctx, fd = socket(AF_UNIX, SOCK_STREAM, 0); if (fd == -1) { ret = errno; - GPDEBUG("Failed to init socket! (%d: %s)\n", ret, strerror(ret)); + GPDEBUG("Failed to init socket! (%d: %s)\n", ret, gp_strerror(ret)); goto done; } @@ -192,14 +192,14 @@ struct gp_sock_ctx *init_unix_socket(struct gssproxy_ctx *gpctx, if (ret == -1) { ret = errno; GPDEBUG("Failed to bind socket %s! (%d: %s)\n", addr.sun_path, - ret, strerror(ret)); + ret, gp_strerror(ret)); goto done; } ret = listen(fd, 10); if (ret == -1) { ret = errno; - GPDEBUG("Failed to listen! (%d: %s)\n", ret, strerror(ret)); + GPDEBUG("Failed to listen! (%d: %s)\n", ret, gp_strerror(ret)); goto done; } @@ -218,7 +218,7 @@ struct gp_sock_ctx *init_unix_socket(struct gssproxy_ctx *gpctx, done: if (ret) { GPERROR("Failed to create Unix Socket! (%d:%s)", - ret, strerror(ret)); + ret, gp_strerror(ret)); if (fd != -1) { close(fd); fd = -1; @@ -245,7 +245,7 @@ static int get_peercred(int fd, struct gp_conn *conn) if (ret == -1) { ret = errno; GPDEBUG("Failed to get SO_PEERCRED options! (%d:%s)\n", - ret, strerror(ret)); + ret, gp_strerror(ret)); return ret; } if (len != sizeof(struct ucred)) { @@ -262,7 +262,7 @@ static int get_peercred(int fd, struct gp_conn *conn) } else { ret = errno; GPDEBUG("Failed to get peer's SELinux context (%d:%s)\n", - ret, strerror(ret)); + ret, gp_strerror(ret)); /* consider thisnot fatal, selinux may be disabled */ } @@ -579,7 +579,7 @@ void accept_sock_conn(verto_ctx *vctx, verto_ev *ev) done: if (ret) { GPERROR("Error connecting client: (%d:%s)", - ret, strerror(ret)); + ret, gp_strerror(ret)); gp_conn_free(conn); } } |