]> git.imager.perl.org - imager.git/blobdiff - log.c
0.62 goals
[imager.git] / log.c
diff --git a/log.c b/log.c
index 17aeb48009e3320628666cd1222cf6a60bcb7cbf..fb08ffd4a91afb10bfe48f80eff2952a21631d78 100644 (file)
--- a/log.c
+++ b/log.c
@@ -1,4 +1,6 @@
+#include "imconfig.h"
 #include "log.h"
 #include "log.h"
+#include <stdlib.h>
 
 #define DTBUFF 50
 #define DATABUFF DTBUFF+3+10+1+5+1+1
 
 #define DTBUFF 50
 #define DATABUFF DTBUFF+3+10+1+5+1+1
@@ -17,7 +19,7 @@ static char  data_buffer[DATABUFF];
  */
 
 void
  */
 
 void
-m_init_log(const char* name,int level) {
+i_init_log(const char* name,int level) {
   log_level = level;
   if (level < 0) {
     lg_file = NULL;
   log_level = level;
   if (level < 0) {
     lg_file = NULL;
@@ -36,7 +38,7 @@ m_init_log(const char* name,int level) {
 }
 
 void
 }
 
 void
-m_fatal(int exitcode,const char *fmt, ... ) {
+i_fatal(int exitcode,const char *fmt, ... ) {
   va_list ap;
   time_t timi;
   struct tm *str_tm;
   va_list ap;
   time_t timi;
   struct tm *str_tm;
@@ -59,15 +61,15 @@ m_fatal(int exitcode,const char *fmt, ... ) {
  * Logging is inactive - insert dummy functions
  */
 
  * Logging is inactive - insert dummy functions
  */
 
-void init_log(const char* name,int onoff) {}
-void m_fatal(int exitcode,const char *fmt, ... ) { exit(exitcode); }
+void i_init_log(const char* name,int onoff) {}
+void i_fatal(int exitcode,const char *fmt, ... ) { exit(exitcode); }
 
 
 #endif
 
 
 void
 
 
 #endif
 
 
 void
-m_loog(int level,const char *fmt, ... ) {
+i_loog(int level,const char *fmt, ... ) {
   va_list ap;
   if (level > log_level) return;
   if (lg_file != NULL) {
   va_list ap;
   if (level > log_level) return;
   if (lg_file != NULL) {
@@ -82,7 +84,7 @@ m_loog(int level,const char *fmt, ... ) {
 
 
 void
 
 
 void
-m_lhead(const char *file, int line) {
+i_lhead(const char *file, int line) {
   time_t timi;
   struct tm *str_tm;
   
   time_t timi;
   struct tm *str_tm;