Browse Source

tst-fanotify: fix style

Reported-by: Andreas Jaeger <aj@suse.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gentoo/2.19
Mike Frysinger 13 years ago
parent
commit
47f28d0a66
  1. 6
      ChangeLog
  2. 17
      sysdeps/unix/sysv/linux/tst-fanotify.c

6
ChangeLog

@ -1,4 +1,8 @@
2013-09-11 P. J. McDermott <pj@pehjota.net>
2013-09-28 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
2013-09-28 P. J. McDermott <pj@pehjota.net>
* sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
${Bash-specific parameter/pattern/string} parameter expansion.

17
sysdeps/unix/sysv/linux/tst-fanotify.c

@ -29,14 +29,15 @@ do_test (void)
fd = fanotify_init (0, 0);
if (fd < 0)
{
switch (errno) {
case ENOSYS:
puts ("SKIP: missing support for fanotify (check CONFIG_FANOTIFY=y)");
return 0;
case EPERM:
puts ("SKIP: missing proper permissions for runtime test");
return 0;
}
switch (errno)
{
case ENOSYS:
puts ("SKIP: missing support for fanotify (check CONFIG_FANOTIFY=y)");
return 0;
case EPERM:
puts ("SKIP: missing proper permissions for runtime test");
return 0;
}
perror ("fanotify_init (0, 0) failed");
return 1;

Loading…
Cancel
Save