Skip to contentSkip to conversation

=?utf-8?q?Fix=20compile=20error=20in=20debug=20mode:=20error:=20=E2=80=98struct=20<anonymous

PATCH New Michael Prokop 1 participant 1 message Mar 3, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 =?utf-8?q?Fix=20compile=20error=20in=20debug=20mode:=20error:=20=E2=80=98struct=20<anonymous

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’

udev/udev-rules.c +1 -1
index 905a1a0..663a6d4 100644
@@ -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:
-		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);
Signature · 1 line
1.5.6.5