From 3c5bd6bcd871b2cdaa22ff810823f2c5a9cfeb0d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sat, 13 Jul 2013 16:21:02 +0200 Subject: bpf: Use iterator variable of correct type array_size() returns size_t, thus make i size_t too to avoid a warning regarding comparison of signed/unsigned. Signed-off-by: Tobias Klauser --- bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpf.c b/bpf.c index 2becc5a..c287597 100644 --- a/bpf.c +++ b/bpf.c @@ -83,7 +83,7 @@ static const char *op_table[] = { void bpf_dump_op_table(void) { - int i; + size_t i; for (i = 0; i < array_size(op_table); ++i) { if (op_table[i]) printf("%s\n", op_table[i]); -- cgit v1.2.3-54-g00ecf