chiark / gitweb /
fix size of state bit table
authorRichard Kettlewell <rjk@greenend.org.uk>
Mon, 1 Oct 2007 15:02:19 +0000 (16:02 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Mon, 1 Oct 2007 15:02:19 +0000 (16:02 +0100)
lib/eclient.c

index 8efefb6f069783169d7e28ab3a7baf19e88fa511..e33cb7cce41024b2a9a936c0ab1cc8df457f96e5 100644 (file)
@@ -1189,7 +1189,7 @@ static void logline(disorder_eclient *c, const char *line) {
   char **vec;
   uintmax_t when;
 
-  D(("log_opcallback [%s]", line));
+  D(("logline [%s]", line));
   vec = split(line, &nvec, SPLIT_QUOTES, logline_error, c);
   if(nvec < 2) return;                  /* probably an error, already
                                          * reported */
@@ -1293,7 +1293,7 @@ static const struct {
   { DISORDER_RANDOM_ENABLED, "enable_random", "disable_random" },
   { DISORDER_TRACK_PAUSED, "pause", "resume" },
 };
-#define NSTATES (int)(sizeof states / sizeof *states)
+#define NSTATES (int)(sizeof statestrings / sizeof *statestrings)
 
 static void logentry_state(disorder_eclient *c,
                            int attribute((unused)) nvec, char **vec) {