summaryrefslogtreecommitdiffstats
path: root/src/plugins/locate/python
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2012-06-27 16:35:20 -0400
committerBen Kaduk <kaduk@mit.edu>2012-07-03 00:43:45 -0400
commit149883bec140286d19751fbae7550043f754f4bb (patch)
tree01fdc7b1521a2f7b76975b797fea86bb60c8f312 /src/plugins/locate/python
parente7aa25d215a9d4baa95643f2d19e44036e57af72 (diff)
downloadkrb5-149883bec140286d19751fbae7550043f754f4bb.tar.gz
krb5-149883bec140286d19751fbae7550043f754f4bb.tar.xz
krb5-149883bec140286d19751fbae7550043f754f4bb.zip
Minor cleanups relating to size_t being unsigned
In order to use -1 as a sentinel value, we should explicitly cast to make it clear what we are doing. It might be better to use a less convoluted sentinel value such as SIZE_T_MAX, though. Additionally, since size_t is unsigned and at least as wide as an int, a loop with int index variable that compares against a size_t for its termination check could become an infinite loop. Make the loop index size_t for consistency.
Diffstat (limited to 'src/plugins/locate/python')
0 files changed, 0 insertions, 0 deletions