[PATCH 1/2 v3] tst-fanotify: new simple test

Mike Frysinger vapier@gentoo.org
Sun Sep 29 03:54:00 GMT 2013


On Thursday 05 September 2013 05:44:50 Andreas Schwab wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > +      switch (errno) {
> 
> Wrong brace indent.

indeed.  fixed thusly:

+2013-09-28  Mike Frysinger  <vapier@gentoo.org>
+
+	* sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.

diff --git a/sysdeps/unix/sysv/linux/tst-fanotify.c b/sysdeps/unix/sysv/linux/tst-fanotify.c
index b21e160..ad9836b 100644
--- a/sysdeps/unix/sysv/linux/tst-fanotify.c
+++ b/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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20130929/aebfaf95/attachment.sig>


More information about the Libc-alpha mailing list