summaryrefslogtreecommitdiff
path: root/gio/gunixconnection.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-05-20 12:01:29 +0200
committerAlexander Larsson <alexl@redhat.com>2009-05-20 12:14:50 +0200
commit5cd86fbda662defa03709a9277b25784d953541e (patch)
tree0dd26830ced0de16a8cbe047c016f1a214a8c08a /gio/gunixconnection.c
parent6d01593b061afb52d22891a371fb29f42d4d62cc (diff)
downloadglib-5cd86fbda662defa03709a9277b25784d953541e.tar.gz
Remove protocol names, instead use an enum with common protocols
The whole protocol name thing is pretty weird. The getprotobyname functions seem to only specify one mapping for name <-> ids, so all families/types must use the same values. Plus the values used for the protocols are standardized by IANA, so are always the same. So, we drop using names for protocols, intead introducing an enum with a few commonly availible and used protocols.
Diffstat (limited to 'gio/gunixconnection.c')
-rw-r--r--gio/gunixconnection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gunixconnection.c b/gio/gunixconnection.c
index 1877f3772..47d172396 100644
--- a/gio/gunixconnection.c
+++ b/gio/gunixconnection.c
@@ -43,7 +43,7 @@ G_DEFINE_TYPE_WITH_CODE (GUnixConnection, g_unix_connection,
g_socket_connection_factory_register_type (g_define_type_id,
G_SOCKET_FAMILY_UNIX,
G_SOCKET_TYPE_STREAM,
- 0);
+ G_SOCKET_PROTOCOL_DEFAULT);
);
/**