Remove "unsigned" attribute to avoid warning from gcc:
sa_common.c: In function ‘add_list_item’:
sa_common.c:2516:20: warning: pointer targets in assignment from ‘unsigned char *’ to ‘char *’ differ in signedness [-Wpointer-sign]
if ((e->item_name = (unsigned char *) malloc(len + 1)) == NULL) {
^
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
/* Item not found: Add it to the list */
SREALLOC(*list, struct sa_item, sizeof(struct sa_item));
e = *list;
- if ((e->item_name = (unsigned char *) malloc(len + 1)) == NULL) {
+ if ((e->item_name = (char *) malloc(len + 1)) == NULL) {
perror("malloc");
exit(4);
}