Module Name:    src
Committed By:   christos
Date:           Sun Jun 14 21:31:01 UTC 2020

Modified Files:
        src/common/lib/libprop: prop_array_util.c prop_dictionary_util.c

Log Message:
add/fix linted comments


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libprop/prop_array_util.c
cvs rdiff -u -r1.6 -r1.7 src/common/lib/libprop/prop_dictionary_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.7 src/common/lib/libprop/prop_array_util.c:1.8
--- src/common/lib/libprop/prop_array_util.c:1.7	Sun Jun 14 17:28:58 2020
+++ src/common/lib/libprop/prop_array_util.c	Sun Jun 14 17:31:01 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: prop_array_util.c,v 1.7 2020/06/14 21:28:58 christos Exp $	*/
+/*	$NetBSD: prop_array_util.c,v 1.8 2020/06/14 21:31:01 christos Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -136,7 +136,7 @@ prop_array_set_ ## name (prop_array_t ar
 			 unsigned int indx,				\
 			 typ val)					\
 {									\
-	/*LINTED: for conversion from long long to 'long'*/		\
+	/*LINTED: for conversion from 'long long' to 'long'*/		\
 	return prop_array_set_ ## which ## _number(array, indx, val);	\
 }									\
 									\
@@ -144,7 +144,7 @@ bool									\
 prop_array_add_ ## name (prop_array_t array,				\
 			 typ val)					\
 {									\
-	/*LINTED: for conversion from long long to 'long'*/		\
+	/*LINTED: for conversion from 'long long' to 'long'*/		\
 	return prop_array_add_ ## which ## _number(array, val);		\
 }
 

Index: src/common/lib/libprop/prop_dictionary_util.c
diff -u src/common/lib/libprop/prop_dictionary_util.c:1.6 src/common/lib/libprop/prop_dictionary_util.c:1.7
--- src/common/lib/libprop/prop_dictionary_util.c:1.6	Sat Jun  6 17:25:59 2020
+++ src/common/lib/libprop/prop_dictionary_util.c	Sun Jun 14 17:31:01 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: prop_dictionary_util.c,v 1.6 2020/06/06 21:25:59 thorpej Exp $	*/
+/*	$NetBSD: prop_dictionary_util.c,v 1.7 2020/06/14 21:31:01 christos Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2020 The NetBSD Foundation, Inc.
@@ -121,6 +121,7 @@ static bool
 prop_dictionary_set_unsigned_number(prop_dictionary_t dict, const char *key,
 				    uintmax_t val)
 {
+	/*LINTED: for conversion from 'long long' to 'long'*/		\
 	return prop_dictionary_set_and_rel(dict, key,
 					   prop_number_create_unsigned(val));
 }
@@ -131,6 +132,7 @@ prop_dictionary_set_ ## name (prop_dicti
 			      const char *key,				\
 			      typ val)					\
 {									\
+	/*LINTED: for conversion from long long to 'long'*/		\
 	return prop_dictionary_set_ ## which ## _number(dict, key, val);\
 }
 
@@ -152,6 +154,8 @@ UTEMPLATE(uchar,     unsigned char)
 UTEMPLATE(ushort,    unsigned short)
 UTEMPLATE(uint,      unsigned int)
 UTEMPLATE(ulong,     unsigned long)
+/*###155 [lint] warning conversion to 'unsigned long' due to prototype, arg #3 [259]%%%*/
+/*###155 [lint] warning conversion from 'unsigned long long' to 'unsigned long' may lose accuracy, arg #3 [298]%%%*/
 UTEMPLATE(ulonglong, unsigned long long)
 UTEMPLATE(uintptr,   uintptr_t)
 UTEMPLATE(uint8,     uint8_t)

Reply via email to