Commit 1e1300f3 authored by Per Cederqvist's avatar Per Cederqvist

(rcsid): Added a missing const.

(logv): Renamed local variable names to avoid warnings from gcc.
(log): Likewise.
parent 664f85a3
/*
* $Id: log.c,v 0.15 1995/11/02 21:48:44 ceder Exp $
* $Id: log.c,v 0.16 1998/07/08 16:29:29 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,8 @@
* File created by ceder 1990-05-25.
*/
static char *rcsid = "$Id: log.c,v 0.15 1995/11/02 21:48:44 ceder Exp $";
static const char *
rcsid = "$Id: log.c,v 0.16 1998/07/08 16:29:29 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -61,11 +62,11 @@ log (const char * format, ...)
extern void
logv (const char *format, va_list AP)
{
time_t clock;
time_t clk;
struct tm *t;
time(&clock);
t = localtime(&clock);
time(&clk);
t = localtime(&clk);
fprintf(stderr, "%02d%02d%02d %02d:%02d:%02d %ld ",
t->tm_year, t->tm_mon + 1, t->tm_mday,
......@@ -79,11 +80,11 @@ extern void
log (const char * format,
int a, int b, int c, int d, int e, int f, int g)
{
time_t clock;
time_t clk;
struct tm *t;
time(&clock);
t = localtime(&clock);
time(&clk);
t = localtime(&clk);
fprintf(stderr, "%02d%02d%02d %02d:%02d:%02d %ld ",
t->tm_year, t->tm_mon + 1, t->tm_mday,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment