projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7a678
)
Actually returning ret might be good.
author
Rob Landley
<rob@landley.net>
Mon, 5 Sep 2005 05:36:15 +0000
(
05:36
-0000)
committer
Rob Landley
<rob@landley.net>
Mon, 5 Sep 2005 05:36:15 +0000
(
05:36
-0000)
libbb/get_terminal_width_height.c
patch
|
blob
|
history
diff --git
a/libbb/get_terminal_width_height.c
b/libbb/get_terminal_width_height.c
index ce3e83c0c392b44ec6eff9678cd3a6b595987b76..01136d414dff83c17cd204d31b0ded85267bb469 100644
(file)
--- a/
libbb/get_terminal_width_height.c
+++ b/
libbb/get_terminal_width_height.c
@@
-38,6
+38,8
@@
int get_terminal_width_height(int fd, int *width, int *height)
if (win.ws_col <= 1) win.ws_col = 80;
if (height) *height = (int) win.ws_row;
if (width) *width = (int) win.ws_col;
+
+ return ret;
}
/* END CODE */