← Commit list

78a3b6739

Denys Vlasenko
Denys Vlasenko
2012-03-19
FAILED Duration: 189s

Subject

Fix one-applet build for tcpsvd

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+1 -8
@@ -80,15 +80,8 @@ int main(int argc, char **argv)
printf("#define NUM_APPLETS %u\n", NUM_APPLETS);
if (NUM_APPLETS == 1) {
- char *dash_to_underscore, *p;
printf("#define SINGLE_APPLET_STR \"%s\"\n", applets[0].name);
- /* Example: "ether-wake" -> "ether_wake" */
- p = dash_to_underscore = strdup(applets[0].name);
- p--;
- while (*++p)
- if (*p == '-')
- *p = '_';
- printf("#define SINGLE_APPLET_MAIN %s_main\n", dash_to_underscore);
+ printf("#define SINGLE_APPLET_MAIN %s_main\n", applets[0].main);
}
printf("\n");