diff --git a/tests/mkdirat.c b/tests/mkdirat.c index dd3a1661..c87c5b33 100644 --- a/tests/mkdirat.c +++ b/tests/mkdirat.c @@ -4,7 +4,6 @@ #ifdef __NR_mkdirat # include -# include # include # include @@ -13,10 +12,10 @@ main(void) { static const char sample[] = "mkdirat.sample"; const long fd = (long) 0xdeadbeefffffffff; - int rc = syscall(__NR_mkdirat, fd, sample, 0600); - printf("mkdirat(%d, \"%s\", 0600) = %d %s (%m)\n", - (int) fd, sample, rc, - errno2name()); + + long rc = syscall(__NR_mkdirat, fd, sample, 0600); + printf("mkdirat(%d, \"%s\", 0600) = %ld %s (%m)\n", + (int) fd, sample, rc, errno2name()); puts("+++ exited with 0 +++"); return 0;