← Commit list

b049c0ec1

Mike Frysinger
Mike Frysinger
2006-06-20
SOURCE BUG Duration: 38s

Subject

only enable count_bit functions when actually needed to fix warning reported by Bernhard Fischer

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 →

networking/ifupdown.c+2 -1
@@ -111,6 +111,8 @@ static char no_act = 0;
static char verbose = 0;
static char **__myenviron = NULL;
+#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
+
#ifdef CONFIG_FEATURE_IFUPDOWN_IP
static unsigned int count_bits(unsigned int a)
@@ -135,7 +137,6 @@ static int count_netmask_bits(char *dotted_quad)
}
#endif
-#if ENABLE_FEATURE_IFUPDOWN_IPV4 || ENABLE_FEATURE_IFUPDOWN_IPV6
static void addstr(char **buf, size_t *len, size_t *pos, char *str, size_t str_length)
{
if (*pos + str_length >= *len) {