summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-17 05:29:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:57 -0500
commit844de2b65c931120a2408365c00fa80cb65959fc (patch)
tree919e4926e04c5dc64856de31c6431d58eb5c675a /source4
parent8d1e35e2435fc0d30534393c003a1a3388704679 (diff)
downloadsamba-844de2b65c931120a2408365c00fa80cb65959fc.tar.gz
samba-844de2b65c931120a2408365c00fa80cb65959fc.tar.bz2
samba-844de2b65c931120a2408365c00fa80cb65959fc.zip
r3015: fixed typo noticed by abartlett
(This used to be commit b367209a9f94e471efed233639467babbb2b99d7)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/socket/socket.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c
index f364ca7c9f..f70a76262b 100644
--- a/source4/lib/socket/socket.c
+++ b/source4/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;