diff lib/strsignal.c @ 12421:e8d2c6fc33ad

Use spaces for indentation, not tabs.
author Bruno Haible <bruno@clisp.org>
date Thu, 10 Dec 2009 20:28:30 +0100 (2009-12-10)
parents f295924fa612
children b5e42ef33b49
line wrap: on
line diff
--- a/lib/strsignal.c
+++ b/lib/strsignal.c
@@ -75,7 +75,7 @@
 
 /* If nonzero the key allocation failed and we should better use a
    static buffer than fail.  */
-#define BUFFERSIZ	100
+#define BUFFERSIZ       100
 static char local_buf[BUFFERSIZ];
 static char *static_buf;
 
@@ -106,16 +106,16 @@
       int len;
 #ifdef SIGRTMIN
       if (signum >= SIGRTMIN && signum <= SIGRTMAX)
-	len = __snprintf (buffer, BUFFERSIZ - 1, _("Real-time signal %d"),
-			  signum - SIGRTMIN);
+        len = __snprintf (buffer, BUFFERSIZ - 1, _("Real-time signal %d"),
+                          signum - SIGRTMIN);
       else
 #endif
-	len = __snprintf (buffer, BUFFERSIZ - 1, _("Unknown signal %d"),
-			  signum);
+        len = __snprintf (buffer, BUFFERSIZ - 1, _("Unknown signal %d"),
+                          signum);
       if (len >= BUFFERSIZ)
-	buffer = NULL;
+        buffer = NULL;
       else
-	buffer[len] = '\0';
+        buffer[len] = '\0';
 
       return buffer;
     }
@@ -177,18 +177,18 @@
   else
     {
       /* We don't use the static buffer and so we have a key.  Use it
-	 to get the thread-specific buffer.  */
+         to get the thread-specific buffer.  */
       result = __libc_getspecific (key);
       if (result == NULL)
-	{
-	  /* No buffer allocated so far.  */
-	  result = malloc (BUFFERSIZ);
-	  if (result == NULL)
-	    /* No more memory available.  We use the static buffer.  */
-	    result = local_buf;
-	  else
-	    __libc_setspecific (key, result);
-	}
+        {
+          /* No buffer allocated so far.  */
+          result = malloc (BUFFERSIZ);
+          if (result == NULL)
+            /* No more memory available.  We use the static buffer.  */
+            result = local_buf;
+          else
+            __libc_setspecific (key, result);
+        }
     }
 
   return result;