uimage_sgehdr: use "char" type for header struct strings
authorRafał Miłecki <rafal@milecki.pl>
Fri, 23 Feb 2024 06:18:37 +0000 (07:18 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 26 Mar 2024 09:16:30 +0000 (10:16 +0100)
commit6777b2d5196107d92e8d5aac32f00c636240ffd8
tree9542154273648565ec80ca137115c19677eb6882
parent224d497dd94f94852ee0a9b9e506aa42451ccfbb
uimage_sgehdr: use "char" type for header struct strings

This fixes:

src/uimage_sgehdr.c: In function ‘main’:
src/uimage_sgehdr.c:152:10: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]
  strncpy(imgh->sgeih_p, model, sizeof(imgh->sgeih_p));
          ^~~~
src/uimage_sgehdr.c:153:10: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]
  strncpy(imgh->sgeih_sv, sversion, sizeof(imgh->sgeih_sv));
          ^~~~
src/uimage_sgehdr.c:154:10: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness [-Wpointer-sign]
  strncpy(imgh->sgeih_hv, hversion, sizeof(imgh->sgeih_hv));
          ^~~~

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
src/uimage_sgehdr.c