[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/dhcp/FC-3 dhcp-3.0.1-uint8_binding_state.patch,NONE,1.1



Author: jvdias

Update of /cvs/dist/rpms/dhcp/FC-3
In directory cvs.devel.redhat.com:/tmp/cvs-serv21705

Added Files:
	dhcp-3.0.1-uint8_binding_state.patch 
Log Message:
fix compilation with default gcc: change binding_state_t to uint8_t (now upstream)

dhcp-3.0.1-uint8_binding_state.patch:
 dhcpd.h |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

--- NEW FILE dhcp-3.0.1-uint8_binding_state.patch ---
--- dhcp-3.0.1/includes/dhcpd.h.uint8_binding_state	2005-07-07 18:21:06.048644000 -0400
+++ dhcp-3.0.1/includes/dhcpd.h	2005-07-07 18:32:06.968063000 -0400
@@ -255,7 +255,7 @@
 } dhcp_control_object_t;
 
 /* Lease states: */
-typedef enum {
+enum binding_state_e {
 	FTS_FREE = 1,
 	FTS_ACTIVE = 2,
 	FTS_EXPIRED = 3,
@@ -263,7 +263,9 @@
 	FTS_ABANDONED = 5,
 	FTS_RESET = 6,
 	FTS_BACKUP = 7
-} binding_state_t;
+};
+
+typedef uint8_t binding_state_t;
 
 /* FTS_LAST is the highest value that is valid for a lease binding state. */
 #define FTS_LAST FTS_BACKUP
@@ -306,9 +308,9 @@
 #	define EPHEMERAL_FLAGS		(MS_NULL_TERMINATION | \
 					 UNICAST_BROADCAST_HACK)
 
-	binding_state_t __attribute__ ((mode (__byte__))) binding_state;
-	binding_state_t __attribute__ ((mode (__byte__))) next_binding_state;
-	binding_state_t __attribute__ ((mode (__byte__))) desired_binding_state;
+	binding_state_t binding_state;
+	binding_state_t next_binding_state;
+	binding_state_t desired_binding_state;
 	
 	struct lease_state *state;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]