summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-13 16:21:02 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-13 16:22:14 +0200
commit3c5bd6bcd871b2cdaa22ff810823f2c5a9cfeb0d (patch)
treea5bb39420351be8c95cd684e42b3e5450cce30f7
parentbf9232fb613b33f178e8409be42290977f243255 (diff)
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 <tklauser@distanz.ch>
-rw-r--r--bpf.c2
1 files changed, 1 insertions, 1 deletions
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]);