1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Description: These functions are used with size_t
Index: libinetutil/usr/src/lib/libinetutil/common/ofmt.h
===================================================================
--- libinetutil.orig/usr/src/lib/libinetutil/common/ofmt.h 2012-10-08 00:25:39.000000000 +0000
+++ libinetutil/usr/src/lib/libinetutil/common/ofmt.h 2013-03-08 20:45:09.756125463 +0000
@@ -161,7 +161,7 @@
* ofmt callback function that provides a string representation of the value to
* be printed for the field.
*/
-typedef boolean_t ofmt_cb_t(ofmt_arg_t *, char *, uint_t);
+typedef boolean_t ofmt_cb_t(ofmt_arg_t *, char *, size_t);
typedef struct ofmt_field_s {
char *of_name; /* column name */
uint_t of_width; /* output column width */
@@ -201,7 +201,7 @@
/*
* ofmt_strerror() provides error diagnostics in the buffer that it is passed.
*/
-extern char *ofmt_strerror(ofmt_handle_t, ofmt_status_t, char *, uint_t);
+extern char *ofmt_strerror(ofmt_handle_t, ofmt_status_t, char *, size_t);
#ifdef __cplusplus
}
Index: libinetutil/usr/src/lib/libinetutil/common/ofmt.c
===================================================================
--- libinetutil.orig/usr/src/lib/libinetutil/common/ofmt.c 2012-10-08 00:25:39.000000000 +0000
+++ libinetutil/usr/src/lib/libinetutil/common/ofmt.c 2013-03-08 20:46:50.451323320 +0000
@@ -537,7 +537,7 @@
* Return error diagnostics using the information in the ofmt_handle_t
*/
char *
-ofmt_strerror(ofmt_handle_t ofmt, ofmt_status_t err, char *buf, uint_t bufsize)
+ofmt_strerror(ofmt_handle_t ofmt, ofmt_status_t err, char *buf, size_t bufsize)
{
ofmt_state_t *os = ofmt;
int i;
|