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

CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	zkabelac@sourceware.org	2010-07-13 20:11:22

Modified files:
	lib/device     : scan.c 

Log message:
	Use const char* for get_size()

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/device/scan.c.diff?cvsroot=dm&r1=1.4&r2=1.5

--- dmraid/lib/device/scan.c	2009/09/17 11:25:57	1.4
+++ dmraid/lib/device/scan.c	2010/07/13 20:11:21	1.5
@@ -260,7 +260,7 @@
 }
 
 static int
-get_size(struct lib_context *lc, char *path, char *name, int sysfs)
+get_size(struct lib_context *lc, const char *path, char *name, int sysfs)
 {
 	int fd, ret = 0;
 	char *dev_path;
@@ -305,7 +305,8 @@
 discover_devices(struct lib_context *lc, char **devnodes)
 {
 	int sysfs, ret = 0;
-	char *path, *p;
+	const char *path;
+	char *p;
 	DIR *d;
 	struct dirent *de;
 
@@ -314,7 +315,7 @@
 		path = p;
 	} else {
 		sysfs = 0;
-		path = (char *) _PATH_DEV;
+		path = _PATH_DEV;
 		log_print(lc, "carrying on with %s", path);
 	}
 

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

only message in thread, other threads:[~2010-07-13 20:11 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:11 dmraid/lib/device scan.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.