Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Finish Alan's code as apparently has was distracted by something shiny.
  • Loading branch information
arr2036 committed Oct 26, 2015
1 parent 5d0d8e8 commit df528d6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/log.c
Expand Up @@ -671,14 +671,15 @@ void vradlog_request(log_type_t type, log_lvl_t lvl, REQUEST *request, char cons
# ifdef HAVE_FOPENCOOKIE
cookie_io_functions_t io;

io.read = io.seek = io.close = NULL;
/*
* These must be set separately as they have different prototypes.
*/
io.read = NULL;
io.seek = NULL;
io.close = NULL;
io.write = request->log.output->cookie_write;

fp = FILE *fopencookie(void *cookie, const char *mode,
cookie_io_functions_t io_funcs);

fp = funopen(request->log.output->cookie,
NULL, request->log.output->cookie_write, NULL, NULL);
fp = fopencookie(request->log.output->cookie, "w", io);
# else
fp = funopen(request->log.output->cookie,
NULL, request->log.output->cookie_write, NULL, NULL);
Expand Down

0 comments on commit df528d6

Please sign in to comment.