From b856bc8631392fd1497936f4ef79b229489bd60b Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Jan 08 2013 09:58:55 +0000 Subject: Use int instead of char for return of getopt (#891105) --- diff --git a/bootparamd-getopt.patch b/bootparamd-getopt.patch new file mode 100644 index 0000000..ce20dc6 --- /dev/null +++ b/bootparamd-getopt.patch @@ -0,0 +1,13 @@ +diff --git a/rpc.bootparamd/main.c b/rpc.bootparamd/main.c +index cc26619..28d356c 100644 +--- a/rpc.bootparamd/main.c ++++ b/rpc.bootparamd/main.c +@@ -37,7 +37,7 @@ main(int argc, char **argv) + int s, pid; + struct hostent *he; + struct stat buf; +- char c; ++ int c; + + progname = rindex(argv[0],'/'); + if (progname) progname++; diff --git a/bootparamd.spec b/bootparamd.spec index 3a07113..c877ccd 100644 --- a/bootparamd.spec +++ b/bootparamd.spec @@ -1,7 +1,7 @@ Summary: A server process which provides boot information to diskless clients Name: bootparamd Version: 0.17 -Release: 36%{?dist} +Release: 37%{?dist} License: BSD Group: System Environment/Daemons Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz @@ -14,6 +14,7 @@ Patch4: bootparamd-resolver-fix.patch Patch5: bootparamd-get-router.patch Patch6: bootparamd-err.patch Patch7: bootparamd-byteorder.patch +Patch8: bootparamd-getopt.patch BuildRequires: systemd-units Requires(post): systemd-units @@ -48,6 +49,7 @@ diskless clients on your network. %patch5 -p1 -b .router %patch6 -p1 -b .err %patch7 -p1 -b .byteorder +%patch8 -p1 -b .getopt %build sh configure --with-c-compiler=gcc @@ -104,6 +106,9 @@ rm -rf %{buildroot} %{_unitdir}/* %changelog +* Tue Jan 08 2013 Lukáš Nykrýn - 0.17-37 +- Use int instead of char for return of getopt (#891105) + * Wed Aug 22 2012 Lukáš Nykrýn - 0.17-36 - Use %systemd macros (#850017)