Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   query.c: fix coding standard violations (http://www.linux-archive.org/archlinux-pacman-development/693056-query-c-fix-coding-standard-violations.html)

Andrew Gregory 08-11-2012 09:35 PM

query.c: fix coding standard violations
 
---
src/pacman/query.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pacman/query.c b/src/pacman/query.c
index d882e5a..7381c4e 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -58,7 +58,7 @@ static int search_path(char **filename, struct stat *bufptr)

/* strip the trailing slash if one exists */
while(path[plen - 1] == '/') {
- path[--plen] = '';
+ path[--plen] = '';
}

fullname = malloc(plen + flen + 2);
@@ -144,7 +144,7 @@ static int query_fileowner(alpm_list_t *targets)

/* trailing '/' causes lstat to dereference directory symlinks */
len = strlen(filename) - 1;
- while(len > 0 && filename[len] == '/'){
+ while(len > 0 && filename[len] == '/') {
filename[len--] = '';
}

--
1.7.11.4


All times are GMT. The time now is 02:35 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.