Blame SOURCES/0153-RH-fix-i686-size-bug.patch

f20720
---
f20720
 multipathd/cli.c |   22 +++++++++++-----------
f20720
 multipathd/cli.h |   20 +++++++++++---------
f20720
 2 files changed, 22 insertions(+), 20 deletions(-)
f20720
f20720
Index: multipath-tools-130222/multipathd/cli.c
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/multipathd/cli.c
f20720
+++ multipath-tools-130222/multipathd/cli.c
f20720
@@ -26,7 +26,7 @@ alloc_handler (void)
f20720
 }
f20720
 
f20720
 static int
f20720
-add_key (vector vec, char * str, unsigned long code, int has_param)
f20720
+add_key (vector vec, char * str, uint64_t code, int has_param)
f20720
 {
f20720
 	struct key * kw;
f20720
 
f20720
@@ -57,7 +57,7 @@ out:
f20720
 }
f20720
 
f20720
 int
f20720
-add_handler (unsigned long fp, int (*fn)(void *, char **, int *, void *))
f20720
+add_handler (uint64_t fp, int (*fn)(void *, char **, int *, void *))
f20720
 {
f20720
 	struct handler * h;
f20720
 
f20720
@@ -79,7 +79,7 @@ add_handler (unsigned long fp, int (*fn)
f20720
 }
f20720
 
f20720
 static struct handler *
f20720
-find_handler (unsigned long fp)
f20720
+find_handler (uint64_t fp)
f20720
 {
f20720
 	int i;
f20720
 	struct handler *h;
f20720
@@ -92,7 +92,7 @@ find_handler (unsigned long fp)
f20720
 }
f20720
 
f20720
 int
f20720
-set_handler_callback (unsigned long fp, int (*fn)(void *, char **, int *, void *))
f20720
+set_handler_callback (uint64_t fp, int (*fn)(void *, char **, int *, void *))
f20720
 {
f20720
 	struct handler * h = find_handler(fp);
f20720
 
f20720
@@ -293,11 +293,11 @@ out:
f20720
 	return r;
f20720
 }
f20720
 
f20720
-static unsigned long 
f20720
+static uint64_t
f20720
 fingerprint(vector vec)
f20720
 {
f20720
 	int i;
f20720
-	unsigned long fp = 0;
f20720
+	uint64_t fp = 0;
f20720
 	struct key * kw;
f20720
 
f20720
 	if (!vec)
f20720
@@ -343,7 +343,7 @@ static int
f20720
 do_genhelp(char *reply, int maxlen) {
f20720
 	int len = 0;
f20720
 	int i, j;
f20720
-	unsigned long fp;
f20720
+	uint64_t fp;
f20720
 	struct handler * h;
f20720
 	struct key * kw;
f20720
 
f20720
@@ -442,7 +442,7 @@ parse_cmd (char * cmd, char ** reply, in
f20720
 }
f20720
 
f20720
 char *
f20720
-get_keyparam (vector v, unsigned long code)
f20720
+get_keyparam (vector v, uint64_t code)
f20720
 {
f20720
 	struct key * kw;
f20720
 	int i;
f20720
@@ -515,7 +515,7 @@ void cli_exit(void)
f20720
 }
f20720
 
f20720
 static int
f20720
-key_match_fingerprint (struct key * kw, unsigned long fp)
f20720
+key_match_fingerprint (struct key * kw, uint64_t fp)
f20720
 {
f20720
 	if (!fp)
f20720
 		return 0;
f20720
@@ -530,7 +530,7 @@ char *
f20720
 key_generator (const char * str, int state)
f20720
 {
f20720
 	static int index, len, has_param;
f20720
-	static unsigned long rlfp;	
f20720
+	static uint64_t rlfp;
f20720
 	struct key * kw;
f20720
 	int i;
f20720
 	struct handler *h;
f20720
@@ -600,7 +600,7 @@ key_generator (const char * str, int sta
f20720
 			 * nfp is the candidate fingerprint we try to
f20720
 			 * validate against all known command fingerprints.
f20720
 			 */
f20720
-			unsigned long nfp = rlfp | kw->code;
f20720
+			uint64_t nfp = rlfp | kw->code;
f20720
 			vector_foreach_slot(handlers, h, i) {
f20720
 				if (!rlfp || ((h->fingerprint & nfp) == nfp)) {
f20720
 					/*
f20720
Index: multipath-tools-130222/multipathd/cli.h
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/multipathd/cli.h
f20720
+++ multipath-tools-130222/multipathd/cli.h
f20720
@@ -1,3 +1,5 @@
f20720
+#include <stdint.h>
f20720
+
f20720
 enum {
f20720
 	__LIST,
f20720
 	__ADD,
f20720
@@ -68,10 +70,10 @@ enum {
f20720
 #define WILDCARDS	(1 << __WILDCARDS)
f20720
 #define QUIT		(1 << __QUIT)
f20720
 #define SHUTDOWN	(1 << __SHUTDOWN)
f20720
-#define GETPRSTATUS	(1UL << __GETPRSTATUS)
f20720
-#define SETPRSTATUS	(1UL << __SETPRSTATUS)
f20720
-#define UNSETPRSTATUS	(1UL << __UNSETPRSTATUS)
f20720
-#define FMT		(1UL << __FMT)
f20720
+#define GETPRSTATUS	(1ULL << __GETPRSTATUS)
f20720
+#define SETPRSTATUS	(1ULL << __SETPRSTATUS)
f20720
+#define UNSETPRSTATUS	(1ULL << __UNSETPRSTATUS)
f20720
+#define FMT		(1ULL << __FMT)
f20720
 
f20720
 #define INITIAL_REPLY_LEN	1200
f20720
 
f20720
@@ -92,21 +94,21 @@ enum {
f20720
 struct key {
f20720
 	char * str;
f20720
 	char * param;
f20720
-	unsigned long code;
f20720
+	uint64_t code;
f20720
 	int has_param;
f20720
 };
f20720
 
f20720
 struct handler {
f20720
-	unsigned long fingerprint;
f20720
+	uint64_t fingerprint;
f20720
 	int (*fn)(void *, char **, int *, void *);
f20720
 };
f20720
 
f20720
 int alloc_handlers (void);
f20720
-int add_handler (unsigned long fp, int (*fn)(void *, char **, int *, void *));
f20720
-int set_handler_callback (unsigned long fp, int (*fn)(void *, char **, int *, void *));
f20720
+int add_handler (uint64_t fp, int (*fn)(void *, char **, int *, void *));
f20720
+int set_handler_callback (uint64_t fp, int (*fn)(void *, char **, int *, void *));
f20720
 int parse_cmd (char * cmd, char ** reply, int * len, void *);
f20720
 int load_keys (void);
f20720
-char * get_keyparam (vector v, unsigned long code);
f20720
+char * get_keyparam (vector v, uint64_t code);
f20720
 void free_keys (vector vec);
f20720
 void free_handlers (void);
f20720
 int cli_init (void);