FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 08-11-2012, 09:35 PM
Andrew Gregory
 
Default 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
 

Thread Tools




All times are GMT. The time now is 01:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org