Add externs to avoid multiple definitions, and then add missing definitions.
[rrq/maintain_lilo.git] / src / cfg.h
index 2e38933435094bb791d9a4b2d888245bf14236ce..64a4d3aee5aeb4034a4f199282ce854a0f43e937 100644 (file)
--- a/src/cfg.h
+++ b/src/cfg.h
@@ -2,7 +2,7 @@
  * 
  * Copyright 1992-1998 Werner Almesberger
  * Copyright 1999-2007 John Coffman
- * Copyright 2009-2010 Joachim Wiedorn
+ * Copyright 2009-2011 Joachim Wiedorn
  * All rights reserved.
  * 
  * Licensed under the terms contained in the file 'COPYING'
@@ -37,7 +37,7 @@ int cfg_open(char *name);
 /* Opens the configuration file. Returns the file descriptor of the open
    file. */
 
-void cfg_error(char *msg,...);
+void cfg_error(char *msg,...) __attribute__ ((format (printf, 1, 2)));
 
 /* Signals an error while parsing the configuration file and terminates the
    program. */