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>
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