[dm-devel] dmraid/lib/device scan.c
zkabelac at sourceware.org
zkabelac at sourceware.org
Tue Jul 13 20:11:23 UTC 2010
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: zkabelac at 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);
}
More information about the dm-devel
mailing list