mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: use string directly
This commit is contained in:
parent
3e0fb102de
commit
07d766d270
@ -18,7 +18,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifdef UDEV_SYNC_SUPPORT
|
#ifdef UDEV_SYNC_SUPPORT
|
||||||
static const char _no_context_msg[] = "Udev library context not set.";
|
|
||||||
struct udev *_udev;
|
struct udev *_udev;
|
||||||
|
|
||||||
int udev_init_library_context(void)
|
int udev_init_library_context(void)
|
||||||
@ -46,7 +45,7 @@ int udev_is_running(void)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!_udev) {
|
if (!_udev) {
|
||||||
log_debug_activation(_no_context_msg);
|
log_debug_activation("Udev library context not set.");
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user