Commit 32c4fd9d authored by Per Cederqvist's avatar Per Cederqvist

(prot_a_output_conf_list): Changed type of local variable "i" from int

	to unsigned long.
(prot_a_output_text_list): Likewise.
(prot_a_output_time): Renamed local variable names to avoid warnings from gcc.
(rcsid): Added a missing const.
parent 0542b22f
/*
* $Id: prot-a-output.c,v 0.28 1998/06/14 14:51:01 byers Exp $
* $Id: prot-a-output.c,v 0.29 1998/07/08 16:54:11 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,8 @@
* Written by ceder 1990-07-13
*/
static char *rcsid = "$Id: prot-a-output.c,v 0.28 1998/06/14 14:51:01 byers Exp $";
static const char *
rcsid = "$Id: prot-a-output.c,v 0.29 1998/07/08 16:54:11 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -171,7 +172,7 @@ void
prot_a_output_conf_list(Connection *fp,
Conf_list_old conf_list)
{
int i;
unsigned long i;
mux_printf(fp, " %lu", (unsigned long)conf_list.no_of_conf_nos);
if ( conf_list.conf_nos != NULL && conf_list.no_of_conf_nos > 0 )
......@@ -380,7 +381,7 @@ void
prot_a_output_text_list(Connection *fp,
Text_list text_list)
{
int i;
unsigned long i;
mux_printf(fp, " %lu %lu",
(unsigned long)text_list.first_local_no,
......@@ -752,22 +753,22 @@ prot_a_output_misc_info(Connection *fp,
void
prot_a_output_time(Connection *fp,
time_t clock)
time_t clk)
{
struct tm *time;
struct tm *t;
time = localtime( &clock );
t = localtime( &clk );
mux_printf(fp, " %lu %lu %lu %lu %lu %lu %lu %lu %lu",
(unsigned long) time -> tm_sec,
(unsigned long) time -> tm_min,
(unsigned long) time -> tm_hour,
(unsigned long) time -> tm_mday,
(unsigned long) time -> tm_mon,
(unsigned long) time -> tm_year,
(unsigned long) time -> tm_wday,
(unsigned long) time -> tm_yday,
(unsigned long) time -> tm_isdst);
(unsigned long) t -> tm_sec,
(unsigned long) t -> tm_min,
(unsigned long) t -> tm_hour,
(unsigned long) t -> tm_mday,
(unsigned long) t -> tm_mon,
(unsigned long) t -> tm_year,
(unsigned long) t -> tm_wday,
(unsigned long) t -> tm_yday,
(unsigned long) t -> tm_isdst);
}
......
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