[pisa-src] r1445 - trunk/libpisa/debug.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2009 11:47:50 +0100

Author: tjansen
Date: Fri Oct 30 11:47:50 2009
New Revision: 1445

Log:
Fix -Wshadow warning:

libpisa/debug.c: In function ‘pisa_handle_log_error’:
libpisa/debug.c:118: warning: declaration of ‘logtype’ shadows a global 
declaration
libpisa/debug.c:61: warning: shadowed declaration is here

Modified:
   trunk/libpisa/debug.c

Modified: trunk/libpisa/debug.c
==============================================================================
--- trunk/libpisa/debug.c       Fri Oct 30 11:17:57 2009        (r1444)
+++ trunk/libpisa/debug.c       Fri Oct 30 11:47:50 2009        (r1445)
@@ -108,15 +108,15 @@
 
 /**
  * pisa_handle_log_error - handle errors generated by log handling
- * @param logtype the type of the log that generated the error 
(PISA_LOGTYPE_STDERR or
+ * @param type the type of the log that generated the error 
(PISA_LOGTYPE_STDERR or
  *           PISA_LOGTYPE_SYSLOG)
  *
  * The default policy is to ignore errors (an alternative policy would
  * be to e.g. exit).
  *
  */
-void pisa_handle_log_error(int logtype) {
-  fprintf(stderr, "log (type=%d) failed, ignoring\n", logtype);
+void pisa_handle_log_error(int type) {
+  fprintf(stderr, "log (type=%d) failed, ignoring\n", type);
 }
 
 /**

Other related posts:

  • » [pisa-src] r1445 - trunk/libpisa/debug.c - Thomas Jansen