Explorar o código

fix source code error which is a showstopper under GCC 3.1

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
c3fceb3742
Modificáronse 2 ficheiros con 14 adicións e 1 borrados
  1. 11 0
      dhcpd/dhcpd.patch
  2. 3 1
      dhcpd/dhcpd.spec

+ 11 - 0
dhcpd/dhcpd.patch

@@ -0,0 +1,11 @@
+--- server/omapi.c.orig	Tue Jun  4 12:02:11 2002
++++ server/omapi.c	Tue Jun  4 12:02:11 2002
+@@ -244,7 +244,7 @@
+ 	    if (lease -> binding_state != bar) {
+ 		lease -> next_binding_state = bar;
+ 		if (supersede_lease (lease, 0, 1, 1, 1)) {
+-			log_info ("lease %d state changed from %s to %s",
++			log_info ("lease state changed from %s to %s",
+ 				  ols, nls);
+ 			return ISC_R_SUCCESS;
+ 		}

+ 3 - 1
dhcpd/dhcpd.spec

@@ -33,12 +33,13 @@ Distribution: OpenPKG [REL]
 Group:        DNS
 License:      ISC/BSD
 Version:      3.0.1rc9
-Release:      20020508
+Release:      20020604
 
 #   list of sources
 Source0:      ftp://ftp.isc.org/isc/dhcp/dhcp-%{version}.tar.gz
 Source1:      dhcpd.conf
 Source2:      rc.dhcpd
+Patch0:       dhcpd.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -53,6 +54,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n dhcp-%{version}
+    %patch -p0
 
 %build
     PATH="%{l_prefix}/bin:$PATH"; export PATH