git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d1e35e
)
r3015: fixed typo noticed by abartlett
author
Andrew Tridgell
<tridge@samba.org>
Sun, 17 Oct 2004 05:29:03 +0000
(
05:29
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:59:57 +0000
(12:59 -0500)
(This used to be commit
b367209a9f94e471efed233639467babbb2b99d7
)
source4/lib/socket/socket.c
patch
|
blob
|
history
diff --git
a/source4/lib/socket/socket.c
b/source4/lib/socket/socket.c
index f364ca7c9f15a41efa803da7f6cafa36f4401bf2..f70a76262b9493c09442a8c81eefc8e143c76bd5 100644
(file)
--- 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 (str
equal("unix", name)
) {
- return socket_
ipv4
_ops();
+ if (str
cmp("unix", name) == 0
) {
+ return socket_
unixdom
_ops();
}
return NULL;