Browse Source

* fix function prototype

master
Alex 'AdUser' Z 9 years ago
parent
commit
6f3670033e
  1. 2
      src/logfile.c
  2. 2
      src/logfile.h

2
src/logfile.c

@ -39,7 +39,7 @@ f2b_logfile_open(f2b_logfile_t *file, const char *path) {
} }
void void
f2b_logfile_close(const f2b_logfile_t *file) { f2b_logfile_close(f2b_logfile_t *file) {
assert(file != NULL); assert(file != NULL);
fclose(file->fd); fclose(file->fd);
file->opened = false; file->opened = false;

2
src/logfile.h

@ -16,7 +16,7 @@ typedef struct f2b_logfile_t {
} f2b_logfile_t; } f2b_logfile_t;
bool f2b_logfile_open(f2b_logfile_t *file, const char *path); bool f2b_logfile_open(f2b_logfile_t *file, const char *path);
void f2b_logfile_close(const f2b_logfile_t *file); void f2b_logfile_close(f2b_logfile_t *file);
bool f2b_logfile_rotated(const f2b_logfile_t *file); bool f2b_logfile_rotated(const f2b_logfile_t *file);
bool f2b_logfile_getline(const f2b_logfile_t *file, char *buf, size_t bufsize); bool f2b_logfile_getline(const f2b_logfile_t *file, char *buf, size_t bufsize);

Loading…
Cancel
Save