Mercurial > hg > toybox
comparison lib/dirtree.c @ 576:4058eacd4fbc
Whitespace (tabs vs spaces) cleanup.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 09 May 2012 06:11:23 -0500 |
parents | 2e0367cb9585 |
children | 4877cff01b25 |
comparison
equal
deleted
inserted
replaced
575:953c22158c2e | 576:4058eacd4fbc |
---|---|
57 return path; | 57 return path; |
58 } | 58 } |
59 | 59 |
60 len = (plen ? *plen : 0)+strlen(node->name)+1; | 60 len = (plen ? *plen : 0)+strlen(node->name)+1; |
61 path = dirtree_path(node->parent, &len); | 61 path = dirtree_path(node->parent, &len); |
62 if (len) path[len++]='/'; | 62 if (len) path[len++]='/'; |
63 len = (stpcpy(path+len, node->name) - path); | 63 len = (stpcpy(path+len, node->name) - path); |
64 if (plen) *plen = len; | 64 if (plen) *plen = len; |
65 | 65 |
66 return path; | 66 return path; |
67 } | 67 } |
68 | 68 |
69 // Default callback, filters out "." and "..". | 69 // Default callback, filters out "." and "..". |