Skip to contentSkip to conversation

LVM2 ./WHATS_NEW lib/log/log.c

PATCH [email protected] 1 participant 1 message Jun 17, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-06-17 14:14:00

Modified files:
. : WHATS_NEW
lib/log : log.c

Log message:
Fix identifier 'error_message_produced' used ambiguously.

Related compiler warning:
log/log.c:242: warning: declaration of 'error_message_produced' shadows a global declaration ../include/log.h:98: warning: shadowed declaration is here

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.904&r2=1.905
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/log/log.c.diff?cvsroot=lvm2&r1=1.46&r2=1.47

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.39 -
 ================================
+  Fix ambiguous use of identifier 'error_message_produced'.
   Begin syncing configure.in for merge/unification with device-mapper.
   Fix add_mirror_images not to dereference uninitialized log_lv upon failure.
   Don't call openlog for every debug line output by clvmd.
lib/log/log.c +2 -2
@@ -239,9 +239,9 @@
 	_indent = indent;
 }
 
-void init_error_message_produced(int error_message_produced)
+void init_error_message_produced(int value)
 {
-	_error_message_produced = error_message_produced;
+	_error_message_produced = value;
 }
 
 int error_message_produced(void)