# HG changeset patch # User diego # Date 1200474142 0 # Node ID 84071d68a7ca426c9ac9a54aa69d6af8a25bb5a1 # Parent 27b50e0167579bead5a246e3a750be173fc0b449 Add const qualifiers to unmodified function parameters, fixes the warning: svq1dec.c:584: warning: passing argument 1 of 'svq1_packet_checksum' discards qualifiers from pointer target type diff -r 27b50e016757 -r 84071d68a7ca svq1dec.c --- a/svq1dec.c Wed Jan 16 08:59:12 2008 +0000 +++ b/svq1dec.c Wed Jan 16 09:02:22 2008 +0000 @@ -540,7 +540,7 @@ return result; } -static uint16_t svq1_packet_checksum (uint8_t *data, int length, int value) { +static uint16_t svq1_packet_checksum (const uint8_t *data, const int length, int value) { int i; for (i=0; i < length; i++) {