diff options
author | Jason St. John <jstjohn@purdue.edu> | 2013-07-22 03:09:57 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-07-30 05:00:20 +0200 |
commit | 4ad6939980a9c6e6fc12c78d9d4b0d2a69dcc01b (patch) | |
tree | 5bce218b117bfa733504ddf6e0c1e516ad907b4b /src/util/pacsort.c | |
parent | 0f22bef8c3441fce4cc47618f644e4f818117014 (diff) | |
download | pacman-4ad6939980a9c6e6fc12c78d9d4b0d2a69dcc01b.tar.gz pacman-4ad6939980a9c6e6fc12c78d9d4b0d2a69dcc01b.tar.xz |
Fix whitespace in pacsort.c and pactree.c
Replace spaces with tabs.
Remove extra spaces.
Signed-off-by: Jason St. John <jstjohn@purdue.edu>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/util/pacsort.c')
-rw-r--r-- | src/util/pacsort.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c index 50b9c650..7c551c2b 100644 --- a/src/util/pacsort.c +++ b/src/util/pacsort.c @@ -26,7 +26,7 @@ #include <alpm.h> -#define DELIM ' ' +#define DELIM ' ' struct buffer_t { char *mem; @@ -52,21 +52,21 @@ static struct options_t { /* A quick and dirty implementation derived from glibc */ static size_t strnlen(const char *s, size_t max) { - register const char *p; - for(p = s; *p && max--; ++p); - return (p - s); + register const char *p; + for(p = s; *p && max--; ++p); + return (p - s); } char *strndup(const char *s, size_t n) { - size_t len = strnlen(s, n); - char *new = (char *) malloc(len + 1); + size_t len = strnlen(s, n); + char *new = (char *) malloc(len + 1); - if(new == NULL) - return NULL; + if(new == NULL) + return NULL; - new[len] = '\0'; - return (char *)memcpy(new, s, len); + new[len] = '\0'; + return (char *)memcpy(new, s, len); } #endif |