Patch by Robert P. Day to remove obsolete alias code that the 2.4 and 2.6 Linux kernels don't do anymore.
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)
No binary (build failed)
—
(log yok)
| @@ -129,7 +129,7 @@ static struct aftype inet_aftype = { | |
| .name = "inet", | |
| .title = "DARPA Internet", | |
| .af = AF_INET, | |
| - | .alen = sizeof(unsigned long), |
| + | .alen = 4, |
| .sprint = INET_sprint, | |
| .fd = -1 | |
| }; | |
| @@ -444,22 +444,16 @@ static int if_readconf(void) | |
| static char *get_name(char *name, char *p) | |
| { | |
| - | /* Extract <name>[:<alias>] from nul-terminated p where p matches |
| - | <name>[:<alias>]: after leading whitespace. |
| + | /* Extract <name> from nul-terminated p where p matches |
| + | <name>: after leading whitespace. |
| If match is not made, set name empty and return unchanged p */ | |
| - | int namestart=0, nameend=0, aliasend; |
| + | int namestart=0, nameend=0; |
| while (isspace(p[namestart])) | |
| namestart++; | |
| nameend=namestart; | |
| while (p[nameend] && p[nameend]!=':' && !isspace(p[nameend])) | |
| nameend++; | |
| if (p[nameend]==':') { | |
| - | aliasend=nameend+1; |
| - | while (p[aliasend] && isdigit(p[aliasend])) |
| - | aliasend++; |
| - | if (p[aliasend]==':') { |
| - | nameend=aliasend; |
| - | } |
| if ((nameend-namestart)<IFNAMSIZ) { | |
| memcpy(name,&p[namestart],nameend-namestart); | |
| name[nameend-namestart]='\0'; | |
| @@ -469,7 +463,7 @@ static char *get_name(char *name, char *p) | |
| name[0]='\0'; | |
| } | |
| } else { | |
| - | /* first ':' not found - return empty */ |
| + | /* trailing ':' not found - return empty */ |
| name[0]='\0'; | |
| } | |
| return p + 1; | |