diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2024-08-15 00:37:08 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-08-15 00:37:08 -0700 |
commit | cc79233013551bdec8b94cee86dd8053244114b0 (patch) | |
tree | d72f3d42b66faeb74cb206eb8e00627e23a7e252 /src/libvmon/vmon.h | |
parent | 77fe3c826652b0697359c65ead688f4f4bf4a742 (diff) |
libvmon: tidy up some elastic buffer handling
Much of this stuff is pretty sloppy ever since it was first
written as a casual experiment. Fixup types to use
size_t/ssize_t where appropriate, and free the actual realloc'd
member of the char_array struct - the container struct with the
assumption that the member is at the struct start.
Diffstat (limited to 'src/libvmon/vmon.h')
-rw-r--r-- | src/libvmon/vmon.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libvmon/vmon.h b/src/libvmon/vmon.h index 2373140..cf282b0 100644 --- a/src/libvmon/vmon.h +++ b/src/libvmon/vmon.h @@ -49,14 +49,14 @@ typedef enum _vmon_proc_wants_t { /* we add some new complex types */ typedef struct _vmon_char_array_t { char *array; - int len; - int alloc_len; + size_t len; + size_t alloc_len; } vmon_char_array_t; typedef struct _vmon_str_array_t { char **array; - int len; - int alloc_len; + size_t len; + size_t alloc_len; } vmon_str_array_t; |