X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fshared%2Fsocket-util.c;h=38729a25b80279d4b7fabdba9b84f52c49c64350;hb=90ab504273a7f186ebb76e6acfb778b4e0d7c91b;hp=1a04f323abeba4af6de882540aebb07b3345687e;hpb=f01e5736f1555eec9183e48448fa3454f265b73e;p=elogind.git diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 1a04f323a..38729a25b 100644 --- a/src/shared/socket-util.c +++ b/src/shared/socket-util.c @@ -426,11 +426,11 @@ bool socket_ipv6_is_supported(void) { _cleanup_free_ char *l = NULL; if (access("/sys/module/ipv6", F_OK) != 0) - return 0; + return false; /* If we can't check "disable" parameter, assume enabled */ if (read_one_line_file("/sys/module/ipv6/parameters/disable", &l) < 0) - return 1; + return true; /* If module was loaded with disable=1 no IPv6 available */ return l[0] == '0';