This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]