Ignore:
Timestamp:
Aug 25, 2008, 7:32:06 PM (13 years ago)
Author:
charles
Message:

upgrade to shttpd 1.42

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/shttpd/log.c

    r5822 r6644  
    1515 */
    1616void
    17 elog(int flags, struct conn *c, const char *fmt, ...)
     17_shttpd_elog(int flags, struct conn *c, const char *fmt, ...)
    1818{
    1919        char    date[64], buf[URI_MAX];
     
    3131
    3232        strftime(date, sizeof(date), "%a %b %d %H:%M:%S %Y",
    33             localtime(&current_time));
     33            localtime(&_shttpd_current_time));
    3434
    35         len = my_snprintf(buf, sizeof(buf),
     35        len = _shttpd_snprintf(buf, sizeof(buf),
    3636            "[%s] [error] [client %s] \"%s\" ",
    3737            date, c ? inet_ntoa(c->sa.u.sin.sin_addr) : "-",
     
    5454
    5555void
    56 log_access(FILE *fp, const struct conn *c)
     56_shttpd_log_access(FILE *fp, const struct conn *c)
    5757{
    5858        static const struct vec dash = {"-", 1};
     
    7979                        localtime(&c->birth_time));
    8080
    81         (void) my_snprintf(buf, sizeof(buf),
     81        (void) _shttpd_snprintf(buf, sizeof(buf),
    8282            "%s - %.*s [%s %+05d] \"%s\" %d %lu %s%.*s%s %s%.*s%s",
    8383            inet_ntoa(c->sa.u.sin.sin_addr), user->len, user->ptr,
    84             date, tz_offset, c->request ? c->request : "-",
     84            date, _shttpd_tz_offset, c->request ? c->request : "-",
    8585            c->status, (unsigned long) c->loc.io.total,
    8686            q1, referer->len, referer->ptr, q1,
Note: See TracChangeset for help on using the changeset viewer.