mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use the more robust util_strlcpy() to copy strings instead of strncpy(). This fixes the following GCC8 compile warnings: qethqoat.c: In function ‘main’: qethqoat.c:616:2: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ifr.ifr_name, opts.ifname, IFNAMSIZ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
18 lines
399 B
Makefile
18 lines
399 B
Makefile
include ../common.mak
|
|
|
|
all: qethqoat
|
|
|
|
libs = $(rootdir)/libutil/libutil.a
|
|
|
|
qethqoat: qethqoat.o $(libs)
|
|
|
|
install: all
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 qethqoat $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 qethqoat.8 $(DESTDIR)$(MANDIR)/man8
|
|
|
|
clean:
|
|
rm -f *.o *~ qethqoat core
|
|
|
|
.PHONY: all install clean
|