summaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-04-27 18:12:23 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-04-27 18:12:23 +0200
commita3d8937a1918db7ac21968f0729c54f582eec711 (patch)
tree970b2079bc9ca1bcfbd73c2f8d412b51fcc40e92 /src/log.h
parentb40eee6a327a9474d4986cf723f236a8b556a60d (diff)
Use the correct value of errno to display a warning when log file creation failed
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index e65d42b..8f8664b 100644
--- a/src/log.h
+++ b/src/log.h
@@ -26,8 +26,8 @@ extern "C" {
#endif
int log_set_levels(const unsigned int levels);
-FILE *log_open(const char*default_filename, const int mode);
-FILE *log_open_default(const char*default_filename, const int mode);
+FILE *log_open(const char*default_filename, const int mode, int *errsv);
+FILE *log_open_default(const char*default_filename, const int mode, int *errsv);
int log_flush(void);
int log_close(void);
int log_redirect(unsigned int level, const char *format, ...) __attribute__((format(printf, 2, 3)));