summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Ruiz <alberto.ruiz@codethink.co.uk>2011-10-04 02:37:37 +0100
committerAlberto Ruiz <alberto.ruiz@codethink.co.uk>2011-10-04 02:37:37 +0100
commit6b42caa7fd2b2215522df63eb96e9c3c18eceaf6 (patch)
tree4f5de3051c255bcad14289d55ece0c1cee7eec82
parent6803e8934f47f7ee0ea39d78761f0614434f0b9d (diff)
downloadtbdiff-6b42caa7fd2b2215522df63eb96e9c3c18eceaf6.tar.gz
Style fixes for readability and consistency
-rw-r--r--libtbd_stat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libtbd_stat.c b/libtbd_stat.c
index d363ae3..87d4f02 100644
--- a/libtbd_stat.c
+++ b/libtbd_stat.c
@@ -209,15 +209,14 @@ tbd_stat_subpath(tbd_stat_t *file,
return NULL;
size_t elen = ((entry == NULL) ? 0 : (strlen(entry) + 1));
-
size_t plen;
+
tbd_stat_t *root;
for(root = file, plen = 0;
root != NULL;
- plen += (strlen(root->name) + 1),
- root = (tbd_stat_t*)root->parent);
- plen += elen;
+ plen += (strlen(root->name) + 1), root = (tbd_stat_t*)root->parent);
+ plen += elen;
char *path = (char*)malloc(plen);
if(path == NULL)