]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include,xalloc: fix whitespace to be consistent
authorDave Reisner <d@falconindy.com>
Thu, 29 Sep 2011 18:56:42 +0000 (14:56 -0400)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Sep 2011 22:24:16 +0000 (00:24 +0200)
We use spaces for the rest of this file, so the random tabs within
xstrdup stand out.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
include/xalloc.h

index bea7e31941273b57981ff7ed7c0a613254536b91..feeb1144f95ac2558fa6f9cfcf3f19814c87a8f1 100644 (file)
@@ -51,16 +51,16 @@ void *xcalloc(const size_t nelems, const size_t size)
 
 static inline char *xstrdup(const char *str)
 {
-       char *ret;
+        char *ret;
 
-       if (!str)
-               return NULL;
+        if (!str)
+                return NULL;
 
-       ret = strdup(str);
+        ret = strdup(str);
 
-       if (!ret)
-               err(XALLOC_EXIT_CODE, "cannot duplicate string");
-       return ret;
+        if (!ret)
+                err(XALLOC_EXIT_CODE, "cannot duplicate string");
+        return ret;
 }
 
 #endif