CVSROOT: /cvs/dm Module name: dmraid Changes by: zkabelac@xxxxxxxxxxxxxx 2010-07-13 20:21:20 Modified files: lib/misc : misc.c lib/locking : locking.c Log message: dbg_strdup, get_dirname accepts const char* Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/misc/misc.c.diff?cvsroot=dm&r1=1.4&r2=1.5 http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/locking/locking.c.diff?cvsroot=dm&r1=1.4&r2=1.5 --- dmraid/lib/misc/misc.c 2010/03/12 11:33:02 1.4 +++ dmraid/lib/misc/misc.c 2010/07/13 20:21:19 1.5 @@ -45,7 +45,7 @@ /* Return the dirname of a path. */ char * -get_dirname(struct lib_context *lc, char *str) +get_dirname(struct lib_context *lc, const char *str) { char *ret = strrchr(str, '/'); size_t len = ret ? ret - str : strlen(str); @@ -228,7 +228,7 @@ char *b, *f, *f_sav; va_list ap; - if (!(f = f_sav = dbg_strdup((char *) fmt))) + if (!(f = f_sav = dbg_strdup(fmt))) return 0; va_start(ap, fmt); --- dmraid/lib/locking/locking.c 2009/09/16 11:45:15 1.4 +++ dmraid/lib/locking/locking.c 2010/07/13 20:21:20 1.5 @@ -68,7 +68,7 @@ int ret = 0; char *dir; - if (!(dir = get_dirname(lc, (char *) lock_file))) + if (!(dir = get_dirname(lc, lock_file))) return 0; if (!mk_dir(lc, dir)) -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel