Merge pull request #8716 from keszybz/two-nitpicks

Two nitpicks
This commit is contained in:
Lennart Poettering
2018-04-17 19:34:27 +02:00
committed by GitHub
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ static int fd_is_nonblock_pipe(int fd) {
struct stat st;
int flags;
/* Checks whether the specified file descriptor refers to a pipe, and if so if is has O_NONBLOCK set. */
/* Checks whether the specified file descriptor refers to a pipe, and if so if O_NONBLOCK is set. */
if (fstat(fd, &st) < 0)
return -errno;
-2
View File
@@ -247,8 +247,6 @@ int unit_name_build(const char *prefix, const char *instance, const char *suffix
assert(suffix);
assert(ret);
if (isempty(suffix))
return -EINVAL;
if (suffix[0] != '.')
return -EINVAL;