From: zkabelac@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: dmraid/lib/device scan.c
Date: 13 Jul 2010 20:11:23 -0000 [thread overview]
Message-ID: <20100713201123.21076.qmail@sourceware.org> (raw)
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);
}
reply other threads:[~2010-07-13 20:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100713201123.21076.qmail@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.