summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-19 11:07:29 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-19 11:07:29 +0100
commitc73bb43275bce8b704c86533a4fdade9d64a28f4 (patch)
tree79ca077c6fd5c028868bc5a600d5193f8d8377a8 /src
parent9c1838e38617700364b63d3c2ed99bc54461d4e3 (diff)
downloadxine-lib-c73bb43275bce8b704c86533a4fdade9d64a28f4.tar.gz
xine-lib-c73bb43275bce8b704c86533a4fdade9d64a28f4.tar.bz2
Make buffering and enabled static, also use them as array of char array rather than array of pointers.
Diffstat (limited to 'src')
-rw-r--r--src/input/net_buf_ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c
index 624af4081..aaf575e40 100644
--- a/src/input/net_buf_ctrl.c
+++ b/src/input/net_buf_ctrl.c
@@ -118,8 +118,8 @@ void nbc_check_buffers (nbc_t *this) {
}
static void display_stats (nbc_t *this) {
- const char *buffering[2] = {" ", "buf"};
- const char *enabled[2] = {"off", "on "};
+ static const char buffering[2][4] = {" ", "buf"};
+ static const char enabled[2][4] = {"off", "on "};
printf("bufing: %d, enb: %d\n", this->buffering, this->enabled);
printf("net_buf_ctrl: vid %3d%% %4.1fs %4" PRId64 "kbps %1d, "\