]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-receive: remove useless call to fileno(3)
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 9 Feb 2023 08:10:15 +0000 (09:10 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 9 Feb 2023 08:10:15 +0000 (09:10 +0100)
src/mlmmj-receive.c

index e3826b4c133b2657835c3e5650fdf569fdb7663f..8fcaf2ad09854caeeb89f3f001421a0e9bd30408 100644 (file)
@@ -144,7 +144,7 @@ int main(int argc, char **argv)
                exit(EXIT_FAILURE);
        }
        
-       if(dumpfd2fd(fileno(stdin), fd) != 0) {
+       if(dumpfd2fd(STDIN_FILENO, fd) != 0) {
                log_error(LOG_ARGS, "Could not receive mail");
                exit(EXIT_FAILURE);
        }