← Commit list

32b2a9fd6

Denis Vlasenko
Denis Vlasenko
2008-02-22
FAILED Duration: 16s

Subject

small code readability and typo fixes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

applets/applet_tables.c+2 -2
@@ -32,7 +32,7 @@ struct bb_applet {
/* Define struct bb_applet applets[] */
#include "../include/applets.h"
-enum { NUM_APPLETS = sizeof(applets)/sizeof(applets[0]) };
+enum { NUM_APPLETS = ARRAY_SIZE(applets) };
static int offset[NUM_APPLETS];
@@ -92,7 +92,7 @@ int main(int argc, char **argv)
+ (applets[i].noexec << 13)
#endif
#if ENABLE_FEATURE_SUID
- + (applets[i].need_suid << 14) /* 2 bits */
+ + (applets[i].need_suid << 14) /* 2 bits */
#endif
);
}
libbb/appletlib.c+1 -1
@@ -34,7 +34,7 @@ static const char usage_messages[] ALIGN1 = ""
#endif /* SHOW_USAGE */
-/* Include generated applet names, pointers to <apllet>_main, etc */
+/* Include generated applet names, pointers to <applet>_main, etc */
#include "applet_tables.h"