public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: meyering@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2/lib/metadata lv_manip.c metadata-exported.h
Date: Mon, 06 Aug 2007 09:04:00 -0000	[thread overview]
Message-ID: <20070806090424.16126.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	meyering@sourceware.org	2007-08-06 09:04:22

Modified files:
	lib/metadata   : lv_manip.c metadata-exported.h 

Log message:
	Make lv_rename's interface "const correct".
	* lib/metadata/lv_manip.c (lv_rename): Make char* param "const".
	* lib/metadata/metadata-exported.h: Update prototype, too.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.116&r2=1.117
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata-exported.h.diff?cvsroot=lvm2&r1=1.4&r2=1.5

--- LVM2/lib/metadata/lv_manip.c	2007/08/03 21:22:09	1.116
+++ LVM2/lib/metadata/lv_manip.c	2007/08/06 09:04:21	1.117
@@ -1466,7 +1466,7 @@
  * Returns 0 on failure, 1 on success.
  */
 int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
-	      char *newname)
+	      const char *newname)
 {
 	struct volume_group *vg = lv->vg;
 
--- LVM2/lib/metadata/metadata-exported.h	2007/08/03 21:22:09	1.4
+++ LVM2/lib/metadata/metadata-exported.h	2007/08/06 09:04:21	1.5
@@ -357,7 +357,7 @@
 int lv_remove(struct logical_volume *lv);
 
 int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
-	      char *newname);
+	      const char *newname);
 
 /* Find a PV within a given VG */
 struct pv_list *find_pv_in_vg(struct volume_group *vg, const char *pv_name);


                 reply	other threads:[~2007-08-06  9:04 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=20070806090424.16126.qmail@sourceware.org \
    --to=meyering@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).