[bootparamd/f17] Use int instead of char for return of getopt (#891105)

Lukáš Nykrýn lnykryn at fedoraproject.org
Fri Jan 25 08:58:38 UTC 2013


commit 971bcea477c7250acabeba80a7ae583881cb1f71
Author: Lukas Nykryn <lnykryn at redhat.com>
Date:   Tue Jan 8 10:58:55 2013 +0100

    Use int instead of char for return of getopt (#891105)

 bootparamd-getopt.patch |   13 +++++++++++++
 bootparamd.spec         |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
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 1e57532..5941681 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: 34%{?dist}
+Release: 35%{?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
@@ -115,6 +117,9 @@ fi
 %{_unitdir}/*
 
 %changelog
+* Tue Jan 08 2013 Lukáš Nykrýn <lnykryn at redhat.com> - 0.17-35
+- Use int instead of char for return of getopt (#891105)
+
 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.17-34
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list