chiark / gitweb /
fix compile error in debug mode
authorMichael Prokop <mika@grml.org>
Tue, 3 Mar 2009 15:50:58 +0000 (16:50 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 3 Mar 2009 16:27:00 +0000 (17:27 +0100)
When building with './configure --enable-debug && make' it fails with:
  udev-rules.c: In function ‘dump_token’:
  udev-rules.c:366: error: ‘struct <anonymous>’ has no member named ‘i’

Signed-off-by: Michael Prokop <mika@grml.org>
udev/udev-rules.c

index 905a1a003840840d5b0924509c5bacf7d7ccab60..663a6d4f047ec8a22d0e9341bdc477b3a0f56072 100644 (file)
@@ -363,7 +363,7 @@ static void dump_token(struct udev_rules *rules, struct token *token)
                    token_str(type), operation_str(op), value, string_glob_str(glob), token->key.mode);
                break;
        case TK_A_INOTIFY_WATCH:
                    token_str(type), operation_str(op), value, string_glob_str(glob), token->key.mode);
                break;
        case TK_A_INOTIFY_WATCH:
-               dbg(rules->udev, "%s %u\n", token_str(type), token->key.i);
+               dbg(rules->udev, "%s %u\n", token_str(type), token->key.watch);
                break;
        case TK_A_NUM_FAKE_PART:
                dbg(rules->udev, "%s %u\n", token_str(type), token->key.num_fake_part);
                break;
        case TK_A_NUM_FAKE_PART:
                dbg(rules->udev, "%s %u\n", token_str(type), token->key.num_fake_part);