All of lore.kernel.org
 help / color / mirror / Atom feed
* dmraid/lib misc/misc.c locking/locking.c
@ 2010-07-13 20:21 zkabelac
  0 siblings, 0 replies; only message in thread
From: zkabelac @ 2010-07-13 20:21 UTC (permalink / raw)
  To: dm-cvs, dm-devel

CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	zkabelac@sourceware.org	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))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-13 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-13 20:21 dmraid/lib misc/misc.c locking/locking.c zkabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.