← Commit list

c0bb30838

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-03-02
SOURCE BUG Duration: 13s

Subject

- silence warning about "'free_and_close_stuff' used but never defined"

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

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 →

editors/sed.c+3 -3
@@ -122,9 +122,9 @@ struct append_list {
};
static struct append_list *append_head=NULL, *append_tail=NULL;
-static void free_and_close_stuff(void);
+void sed_free_and_close_stuff(void);
#if ENABLE_FEATURE_CLEAN_UP
-static void free_and_close_stuff(void)
+void sed_free_and_close_stuff(void)
{
sed_cmd_t *sed_cmd = sed_cmd_head.next;
@@ -1113,7 +1113,7 @@ extern int sed_main(int argc, char **argv)
int status = EXIT_SUCCESS, opt, getpat = 1;
/* destroy command strings on exit */
- if (ENABLE_FEATURE_CLEAN_UP && atexit(free_and_close_stuff) == -1)
+ if (ENABLE_FEATURE_CLEAN_UP && atexit(sed_free_and_close_stuff) == -1)
bb_perror_msg_and_die("atexit");
/* Lie to autoconf when it starts asking stupid questions. */