← Commit list

5a2997de7

Rob Landley
Rob Landley
2006-05-25
SOURCE BUG Duration: 48s

Subject

Remove pointless #define.

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 →

miscutils/less.c+1 -4
@@ -70,9 +70,6 @@
/* Maximum number of lines in a file */
#define MAXLINES 10000
-/* Get height and width of terminal */
-#define tty_width_height() get_terminal_width_height(0, &width, &height)
-
static int height;
static int width;
static char **files;
@@ -1136,7 +1133,7 @@ int less_main(int argc, char **argv) {
}
strcpy(filename, (inp_stdin) ? bb_msg_standard_input : files[0]);
- tty_width_height();
+ get_terminal_width_height(0, &width, &height)
data_readlines();
tcgetattr(fileno(inp), &term_orig);
term_vi = term_orig;