]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
af_unix: s/minus_one_set_errno(/ret_set_errno(-1, /g
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 7 Dec 2019 16:22:14 +0000 (17:22 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 8 Dec 2019 01:28:24 +0000 (02:28 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/af_unix.c

index d1987ee42abda551d0c09bb35e1de8eb6fb29a1c..9b6825604e686327966cccea9f87054cd20b5e03 100644 (file)
@@ -302,14 +302,14 @@ int lxc_unix_sockaddr(struct sockaddr_un *ret, const char *path)
 
        len = strlen(path);
        if (len == 0)
-               return minus_one_set_errno(EINVAL);
+               return ret_set_errno(-1, EINVAL);
        if (path[0] != '/' && path[0] != '@')
-               return minus_one_set_errno(EINVAL);
+               return ret_set_errno(-1, EINVAL);
        if (path[1] == '\0')
-               return minus_one_set_errno(EINVAL);
+               return ret_set_errno(-1, EINVAL);
 
        if (len + 1 > sizeof(ret->sun_path))
-               return minus_one_set_errno(EINVAL);
+               return ret_set_errno(-1, EINVAL);
 
        *ret = (struct sockaddr_un){
            .sun_family = AF_UNIX,