[lvm-devel] [PATCH] Return proper type from _raidsyncaction()

heinzm at redhat.com heinzm at redhat.com
Fri Sep 26 10:42:24 UTC 2014


From: Heinz Mauelshagen <heinzm at redhat.com>

Signed-off-by: Heinz Mauelshagen <heinzm at redhat.com>

---
 lib/report/properties.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/report/properties.c b/lib/report/properties.c
index e0092db..0218108 100644
--- a/lib/report/properties.c
+++ b/lib/report/properties.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2010-2014 Red Hat, Inc. All rights reserved.
  *
  * This file is part of LVM2.
  *
@@ -71,7 +71,7 @@ static char *_raidsyncaction(const struct logical_volume *lv)
 	char *action;
 
 	if (!lv_raid_sync_action(lv, &action))
-		return 0;
+		return NULL;
 
 	return action;
 }
-- 
1.9.3




More information about the lvm-devel mailing list