Blame SOURCES/bz626417_20-cleanup_some_compilation_warning.patch

325406
--- a/lib/events/libdmraid-events-isw.c	
325406
+++ a/lib/events/libdmraid-events-isw.c	
325406
@@ -101,13 +101,12 @@ enum rebuild_type { REBUILD_START, REBUILD_END };
325406
 static const char *default_dmraid_events_lib = "libdmraid-events.so";
325406
 static const char *sys_dm_dm = "dm-";
325406
 static const char *sys_block_path = "/sys/block/";
325406
-static const char *sys_dm_path = "/sys/block/dm-";
325406
+//static const char *sys_dm_path = "/sys/block/dm-";
325406
 static const char *sys_scsi_path = "/sys/class/scsi_device/";
325406
 static const char *sys_slaves_dir = "/slaves";
325406
 static const char *sys_scsi_dev_blk = "/device/block";
325406
 static const char sys_scsi_dev_blk_delims[] = { '/', ':' };
325406
 static const char *sys_dev_dir = "/dev";
325406
-static const char *syslog_ident = "libdmraid-events";
325406
 
325406
 /* Logging. */
325406
 enum log_type { LOG_NAMES, LOG_PORTS, LOG_OPEN_FAILURE, LOG_NONE };
325406
@@ -1534,7 +1533,7 @@ int register_device(const char *rs_name, const char *uuid,
325406
 	/* FIXME: need to run first to get syslog() to work. */
325406
 	_check_sgpio();
325406
 
325406
-	rs_name = basename(rs_name);
325406
+	rs_name = basename((char *)rs_name);
325406
 
325406
 	/* Check for double registration attempt. */
325406
 	pthread_mutex_lock(&_register_mutex);
325406
@@ -1595,7 +1594,7 @@ int unregister_device(const char *rs_name, const char *uuid,
325406
 {
325406
 	struct dso_raid_set *prev, *rs;
325406
 
325406
-	rs_name = basename(rs_name);
325406
+	rs_name = basename((char *)rs_name);
325406
 
325406
 	pthread_mutex_lock(&_register_mutex);
325406
 
325406
--- a/lib/format/ataraid/isw.c	
325406
+++ a/lib/format/ataraid/isw.c	
325406
@@ -1250,7 +1250,7 @@ static int
325406
 isw_metadata_handler(struct lib_context *lc, enum handler_commands command,
325406
 		     struct handler_info *info, void *context)
325406
 {
325406
-	int idx, ret = 0;
325406
+	int ret = 0;
325406
 	struct raid_set *rs = context;
325406
 	struct raid_dev *rd = list_entry(rs->devs.next, struct raid_dev, devs);
325406
 	struct isw *isw, *new_isw;
325406
--- a/lib/register/dmreg.c	
325406
+++ a/lib/register/dmreg.c	
325406
@@ -427,12 +427,12 @@ static int _validate_dev_and_dso_names(char *dev_name, char *dso_name)
325406
  * Function removes unnecassary path to the DSO library
325406
  * (leaves only library name)
325406
  */
325406
-char * dso_lib_name_prepare(char * dso_path) 
325406
+char *dso_lib_name_prepare(char *dso_path) 
325406
 {
325406
 	char *ptr = NULL;
325406
 	char *lib_name = dso_path;
325406
 
325406
-	while (ptr = strchr(lib_name, '/'))
325406
+	while ((ptr = strchr(lib_name, '/')) != NULL)
325406
 	    lib_name = ptr + 1;
325406
 	
325406
 	return lib_name;