diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2013-01-03 22:48:51 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-04 12:49:37 +0100 |
commit | e13a3bf5990d03cca25c86efbfbaf2540d645413 (patch) | |
tree | 74ca915c593e8f275c9a46c957fcaf16bfab8cee /lib/libalpm | |
parent | 46e9afdd74b39be78e6d66696d1e53914894e9b7 (diff) | |
download | pacman-e13a3bf5990d03cca25c86efbfbaf2540d645413.tar.gz pacman-e13a3bf5990d03cca25c86efbfbaf2540d645413.tar.xz |
Fix missing spaces in operators
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/filelist.c | 2 | ||||
-rw-r--r-- | lib/libalpm/handle.c | 2 | ||||
-rw-r--r-- | lib/libalpm/util.c | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/libalpm/filelist.c b/lib/libalpm/filelist.c index d1aeb835..f4cdddc6 100644 --- a/lib/libalpm/filelist.c +++ b/lib/libalpm/filelist.c @@ -185,7 +185,7 @@ error: int _alpm_filelist_resolve(alpm_handle_t *handle, alpm_filelist_t *files) { char path[PATH_MAX]; - size_t root_len, i=0; + size_t root_len, i = 0; int ret = 0; if(!files || files->resolved_path) { diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index c064379c..75aaf9db 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -57,7 +57,7 @@ void _alpm_handle_free(alpm_handle_t *handle) /* close logfile */ if(handle->logstream) { fclose(handle->logstream); - handle->logstream= NULL; + handle->logstream = NULL; } if(handle->usesyslog) { handle->usesyslog = 0; diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index f6e66321..9effd181 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -69,22 +69,22 @@ char *strsep(char **str, const char *delims) { char *token; - if(*str==NULL) { + if(*str == NULL) { /* No more tokens */ return NULL; } - token=*str; - while(**str!='\0') { - if(strchr(delims,**str)!=NULL) { - **str='\0'; + token = *str; + while(**str != '\0') { + if(strchr(delims, **str) != NULL) { + **str = '\0'; (*str)++; return token; } (*str)++; } /* There is no other token */ - *str=NULL; + *str = NULL; return token; } #endif @@ -350,7 +350,7 @@ int _alpm_unpack(alpm_handle_t *handle, const char *path, const char *prefix, char *entry_prefix = strdup(entryname); char *p = strstr(entry_prefix,"/"); if(p) { - *(p+1) = '\0'; + *(p + 1) = '\0'; } char *found = alpm_list_find_str(list, entry_prefix); free(entry_prefix); @@ -475,7 +475,7 @@ int _alpm_logaction(alpm_handle_t *handle, const char *fmt, va_list args) /* Use ISO-8601 date format */ fprintf(handle->logstream, "[%04d-%02d-%02d %02d:%02d] ", - tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, + tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min); ret = vfprintf(handle->logstream, fmt, args); fflush(handle->logstream); |