Skip to contentSkip to conversation

master - cleanup: use string directly

PATCH Zdenek Kabelac 1 participant 1 message Nov 22, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=07d766d270f764e3a8300fee79ac559d18f21e66
Commit:        07d766d270f764e3a8300fee79ac559d18f21e66
Parent:        3e0fb102dece1a4d476496c3b6291e319b6305be
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Nov 22 13:24:53 2013 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Nov 22 21:00:55 2013 +0100

cleanup: use string directly

---
 lib/misc/lvm-wrappers.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
lib/misc/lvm-wrappers.c +1 -2
index a96cd98..46590b9 100644
@@ -18,7 +18,6 @@
 #include <fcntl.h>
 
 #ifdef UDEV_SYNC_SUPPORT
-static const char _no_context_msg[] = "Udev library context not set.";
 struct udev *_udev;
 
 int udev_init_library_context(void)
@@ -46,7 +45,7 @@ int udev_is_running(void)
 	int r;
 
 	if (!_udev) {
-		log_debug_activation(_no_context_msg);
+		log_debug_activation("Udev library context not set.");
 		goto bad;
 	}