bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 16/17] Always initialize A and X variables in BPF code


From: Guillem Jover
Subject: [PATCH 16/17] Always initialize A and X variables in BPF code
Date: Thu, 25 Aug 2011 15:22:39 +0200

* device/net_io.c (bpf_do_filter): Remove lint conditional.
---
 device/net_io.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/device/net_io.c b/device/net_io.c
index 1db9bca..8446395 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -1655,10 +1655,9 @@ bpf_do_filter(infp, p, wirelen, header, hlen, 
hash_headpp, entpp)
        buflen = NET_RCV_MAX;
        *entpp = 0;                     /* default */
 
-#ifdef lint
        A = 0;
        X = 0;
-#endif
+
        for (; pc < pc_end; ++pc) {
                switch (pc->code) {
 
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]