Module Name: src Committed By: christos Date: Sun Jun 14 21:28:58 UTC 2020
Modified Files: src/common/lib/libprop: prop_array_util.c Log Message: Fix incorrect type (found by lint), and add linted comments for the long long -> long (uintmax_t on LP64) To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/common/lib/libprop/prop_array_util.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libprop/prop_array_util.c diff -u src/common/lib/libprop/prop_array_util.c:1.6 src/common/lib/libprop/prop_array_util.c:1.7 --- src/common/lib/libprop/prop_array_util.c:1.6 Sat Jun 6 17:25:59 2020 +++ src/common/lib/libprop/prop_array_util.c Sun Jun 14 17:28:58 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: prop_array_util.c,v 1.6 2020/06/06 21:25:59 thorpej Exp $ */ +/* $NetBSD: prop_array_util.c,v 1.7 2020/06/14 21:28:58 christos Exp $ */ /*- * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc. @@ -125,7 +125,7 @@ prop_array_set_unsigned_number(prop_arra } static bool -prop_array_add_unsigned_number(prop_array_t array, intmax_t val) +prop_array_add_unsigned_number(prop_array_t array, uintmax_t val) { return prop_array_add_and_rel(array, prop_number_create_unsigned(val)); } @@ -136,6 +136,7 @@ prop_array_set_ ## name (prop_array_t ar unsigned int indx, \ typ val) \ { \ + /*LINTED: for conversion from long long to 'long'*/ \ return prop_array_set_ ## which ## _number(array, indx, val); \ } \ \ @@ -143,6 +144,7 @@ bool \ prop_array_add_ ## name (prop_array_t array, \ typ val) \ { \ + /*LINTED: for conversion from long long to 'long'*/ \ return prop_array_add_ ## which ## _number(array, val); \ }