projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.2.1
[fms.git]
/
libs
/
shttpd
/
log.c
diff --git
a/libs/shttpd/log.c
b/libs/shttpd/log.c
index
4b43610
..
583142f
100644
(file)
--- a/
libs/shttpd/log.c
+++ b/
libs/shttpd/log.c
@@
-22,7
+22,7
@@
elog(int flags, struct conn *c, const char *fmt, ...)
va_list ap;
/* Print to stderr */
va_list ap;
/* Print to stderr */
- if (c == NULL ||
c->ctx->inetd_mode == 0
) {
+ if (c == NULL ||
!IS_TRUE(c->ctx, OPT_INETD)
) {
va_start(ap, fmt);
(void) vfprintf(stderr, fmt, ap);
(void) fputc('\n', stderr);
va_start(ap, fmt);
(void) vfprintf(stderr, fmt, ap);
(void) fputc('\n', stderr);
@@
-48,15
+48,6
@@
elog(int flags, struct conn *c, const char *fmt, ...)
(void) fflush(fp);
}
(void) fflush(fp);
}
-#if defined(_WIN32) && !defined(NO_GUI)
- {
- extern HWND hLog;
-
- if (hLog != NULL)
- SendMessage(hLog, WM_APP, 0, (LPARAM) buf);
- }
-#endif /* _WIN32 */
-
if (flags & E_FATAL)
exit(EXIT_FAILURE);
}
if (flags & E_FATAL)
exit(EXIT_FAILURE);
}
@@
-85,7
+76,7
@@
log_access(FILE *fp, const struct conn *c)
}
(void) strftime(date, sizeof(date), "%d/%b/%Y:%H:%M:%S",
}
(void) strftime(date, sizeof(date), "%d/%b/%Y:%H:%M:%S",
- localtime(&c
urrent
_time));
+ localtime(&c
->birth
_time));
(void) my_snprintf(buf, sizeof(buf),
"%s - %.*s [%s %+05d] \"%s\" %d %lu %s%.*s%s %s%.*s%s",
(void) my_snprintf(buf, sizeof(buf),
"%s - %.*s [%s %+05d] \"%s\" %d %lu %s%.*s%s %s%.*s%s",
@@
-99,13
+90,4
@@
log_access(FILE *fp, const struct conn *c)
(void) fprintf(fp, "%s\n", buf);
(void) fflush(fp);
}
(void) fprintf(fp, "%s\n", buf);
(void) fflush(fp);
}
-
-#if defined(_WIN32) && !defined(NO_GUI)
- {
- extern HWND hLog;
-
- if (hLog != NULL)
- SendMessage(hLog, WM_APP, 0, (LPARAM) buf);
- }
-#endif /* _WIN32 */
}
}