Browse Source

fix cosmetic bug in /proc/mediaproxy/list

table 0 is now shown correctly in output. also reformatted output to make it more useful to scripts.
git.mgm/mediaproxy-ng/2.0
Richard Fuchs 14 years ago
parent
commit
ddb5865339
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      kernel-module/ipt_MEDIAPROXY.c

+ 3
- 3
kernel-module/ipt_MEDIAPROXY.c View File

@ -426,8 +426,8 @@ static void *proc_main_list_next(struct seq_file *f, void *v, loff_t *o) { /* v
return NULL;
id = *o;
while (id++ < MAX_ID) {
t = get_table(id);
while (id < MAX_ID) {
t = get_table(id++);
if (!t)
continue;
break;
@ -441,7 +441,7 @@ static void *proc_main_list_next(struct seq_file *f, void *v, loff_t *o) { /* v
static int proc_main_list_show(struct seq_file *f, void *v) {
struct mediaproxy_table *g = v;
seq_printf(f, "table %u present\n", g->id);
seq_printf(f, "%u\n", g->id);
table_push(g);
return 0;


Loading…
Cancel
Save