summaryrefslogtreecommitdiffstats
path: root/source/lib/socket/socket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-17 05:29:03 +0000
committerAndrew Tridgell <tridge@samba.org>2004-10-17 05:29:03 +0000
commitfd21c812e25b139ba3c8049891653d1d22df1b47 (patch)
tree48cd930d544f553630916f0325cdfbae6c862bad /source/lib/socket/socket.c
parent910a159c51df4c261f3591f61854d31d9b04944f (diff)
downloadsamba-fd21c812e25b139ba3c8049891653d1d22df1b47.tar.gz
samba-fd21c812e25b139ba3c8049891653d1d22df1b47.tar.xz
samba-fd21c812e25b139ba3c8049891653d1d22df1b47.zip
r3015: fixed typo noticed by abartlett
Diffstat (limited to 'source/lib/socket/socket.c')
-rw-r--r--source/lib/socket/socket.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/lib/socket/socket.c b/source/lib/socket/socket.c
index f364ca7c9f1..f70a76262b9 100644
--- a/source/lib/socket/socket.c
+++ b/source/lib/socket/socket.c
@@ -236,12 +236,13 @@ int socket_get_fd(struct socket_context *sock)
const struct socket_ops *socket_getops_byname(const char *name, enum socket_type type)
{
- if (strequal("ip", name) || strequal("ipv4", name)) {
+ if (strcmp("ip", name) == 0 ||
+ strcmp("ipv4", name) == 0) {
return socket_ipv4_ops();
}
- if (strequal("unix", name)) {
- return socket_ipv4_ops();
+ if (strcmp("unix", name) == 0) {
+ return socket_unixdom_ops();
}
return NULL;