From 02d5705cc3a2046a9ba63c71959bc26cf01d53e7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 4 Nov 2011 17:38:50 +1100 Subject: [PATCH] Use the passed in data value --- bsdsum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsdsum.cpp b/bsdsum.cpp index 016e32fb..25313adf 100644 --- a/bsdsum.cpp +++ b/bsdsum.cpp @@ -22,7 +22,7 @@ uint16_t bsdsum (const void *restrict _data, size_t size) { - const uint8_t *restrict data = static_cast (data); + const uint8_t *restrict data = static_cast (_data); uint16_t accum = 0; for (size_t i = 0; i < size; ++i) {