Skip to contentSkip to conversation

dmraid/tools toollib.c

PATCH [email protected] 1 participant 1 message Jul 13, 2010 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: dmraid
Changes by: [email protected] 2010-07-13 20:16:47

Modified files:
tools : toollib.c

Log message:
dbg_strdup accepts const char*

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/tools/toollib.c.diff?cvsroot=dm&r1=1.2&r2=1.3

tools/toollib.c +1 -1
@@ -108,7 +108,7 @@
 	char *p, *p_sav, *sep;
 	const char delim = *OPT_STR_SEPARATOR(lc);
 
-	if (!(p_sav = dbg_strdup((char *) fmt)))
+	if (!(p_sav = dbg_strdup(fmt)))
 		return log_alloc_err(lc, __func__);
 
 	sep = p_sav;