aboutsummaryrefslogtreecommitdiff
path: root/scripts/install.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-11-13 17:14:08 -0600
committerRob Landley <rob@landley.net>2012-11-13 17:14:08 -0600
commit7aa651a6a4496d848f86de9b1e6b3a003256a01f (patch)
tree6995fb4b7cc2e90a6706b0239ebaf95d9dbab530 /scripts/install.c
parent571b0706cce45716126776d0ad0f6ac65f4586e3 (diff)
downloadtoybox-7aa651a6a4496d848f86de9b1e6b3a003256a01f.tar.gz
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
The actual code should be the same afterward, this is just cosmetic refactoring.
Diffstat (limited to 'scripts/install.c')
-rw-r--r--scripts/install.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/scripts/install.c b/scripts/install.c
index 317b180c..cda8fc22 100644
--- a/scripts/install.c
+++ b/scripts/install.c
@@ -1,4 +1,3 @@
-/* vi: set ts=4 :*/
/* Wrapper to make installation easier with cross-compiling.
*
* Copyright 2006 Rob Landley <rob@landley.net>
@@ -21,20 +20,20 @@ struct toy_list toy_list[] = {
int main(int argc, char *argv[])
{
- static char *toy_paths[]={"usr/","bin/","sbin/",0};
- int i, len = 0;
+ static char *toy_paths[]={"usr/","bin/","sbin/",0};
+ int i, len = 0;
- // Output list of applets.
- for (i=1; i<TOY_LIST_LEN; i++) {
- int fl = toy_list[i].flags;
- if (fl & TOYMASK_LOCATION) {
- if (argc>1) {
- int j;
- for (j=0; toy_paths[j]; j++)
- if (fl & (1<<j)) len += printf("%s", toy_paths[j]);
- }
- len += printf("%s\n",toy_list[i].name);
- }
- }
- return 0;
+ // Output list of applets.
+ for (i=1; i<TOY_LIST_LEN; i++) {
+ int fl = toy_list[i].flags;
+ if (fl & TOYMASK_LOCATION) {
+ if (argc>1) {
+ int j;
+ for (j=0; toy_paths[j]; j++)
+ if (fl & (1<<j)) len += printf("%s", toy_paths[j]);
+ }
+ len += printf("%s\n",toy_list[i].name);
+ }
+ }
+ return 0;
}