Ignore:
Timestamp:
Dec 6, 2015, 10:13:10 PM (5 years ago)
Author:
jordan
Message:

const correctness

silence some qual-cast warnings by sprinkling more consts throughout,
e.g. casting a const void* to a const struct foo * const *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/variant-test.c

    r14521 r14613  
    114114  check_int_eq (0, err);
    115115  check_int_eq (4, len);
    116   check (!strncmp ((char*)str, "boat", len));
     116  check (!strncmp ((const char*)str, "boat", len));
    117117  check (end == buf + 6);
    118118  str = NULL;
     
    144144  check_int_eq (0, err);
    145145  check_int_eq (3, len);
    146   check (!strncmp ((char*)str, "boa", len));
     146  check (!strncmp ((const char*)str, "boa", len));
    147147  check (end == buf + 5);
    148148  str = NULL;
Note: See TracChangeset for help on using the changeset viewer.