X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stat.c;h=536807dc483f7353566ec1853ba8696598e517e7;hp=4ad1b5a88d957f411c5ccad6bb00f871e440f842;hb=466c0d2b45c100b4b3caeb4c8b476bba21dcd00b;hpb=19c9891a4083cf0d5d7ee82b09bed71a1059f71e diff --git a/stat.c b/stat.c index 4ad1b5a8..536807dc 100644 --- a/stat.c +++ b/stat.c @@ -91,7 +91,7 @@ const char *status_item_list[NUM_STAT_ITEMS] = { [SI_CURRENT_TIME] = "current_time", [SI_AUDIOD_UPTIME] = "audiod_uptime", - [SI_DBTOOL] = "dbtool" + [SI_SELECTOR] = "dbtool" }; #define FOR_EACH_STAT_ITEM(i) for (i = 0; i < NUM_STAT_ITEMS; i++) @@ -195,7 +195,6 @@ void dump_empty_status(void) free(empty_items); empty_items = tmp; } -// PARA_DEBUG_LOG("%s: empty items: %s\n", __func__, empty_items); stat_client_write(empty_items); free(empty_items); } @@ -217,7 +216,7 @@ int stat_line_valid(const char *line) if (!line || !*line) return -E_UNKNOWN_STAT_ITEM; line_len = strlen(line); - for (i = 0; i < NUM_STAT_ITEMS; i++) { + FOR_EACH_STAT_ITEM(i) { const char *s = status_item_list[i]; size_t item_len = strlen(s);