[BusyBox-cvs] busybox/miscutils hdparm.c,1.5,1.6
Glenn McGrath
bug1 at busybox.net
Thu Oct 9 07:28:25 UTC 2003
Update of /var/cvs/busybox/miscutils
In directory winder:/tmp/cvs-serv7119/miscutils
Modified Files:
hdparm.c
Log Message:
Patch from Tito, size optimisation and fix error in exit code of -V
option
Index: hdparm.c
===================================================================
RCS file: /var/cvs/busybox/miscutils/hdparm.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- hdparm.c 15 Sep 2003 03:37:32 -0000 1.5
+++ hdparm.c 9 Oct 2003 07:28:22 -0000 1.6
@@ -3,7 +3,9 @@
* hdparm implementation for busybox
*
*
- * Copyright (C) [2003] by [Matteo Croce] <3297627799 at wind.it>
+ * Copyright (C) [2003] by [Matteo Croce] <pinnolo at tin.it>
+ *
+ * Hacked by Tito <farmatito at tiscali.it> for size optimization.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,7 +27,7 @@
[...3293 lines suppressed...]
- break;
- }
+ p = check_ptr(p,argc,argv);
+ if((set_busstate = set_flag(p,'2'))==1)
+ busstate = *p++ - '0';
break;
#endif
case 'h':
@@ -2666,9 +2875,9 @@
}
if (!argc)
bb_show_usage();
- } else {
- process_dev (p);
}
+ else
+ process_dev (p);
}
return 0 ;
}
More information about the busybox-cvs
mailing list