Commit 32043be0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed some format strings.

parent e5de42f8
/*
* $Id: internal-connections.c,v 0.16 1993/10/16 17:46:02 ceder Exp $
* $Id: internal-connections.c,v 0.17 1993/11/22 19:09:32 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Abstract routines on the data type Connection.
*/
static char *rcsid = "$Id: internal-connections.c,v 0.16 1993/10/16 17:46:02 ceder Exp $";
static char *rcsid = "$Id: internal-connections.c,v 0.17 1993/11/22 19:09:32 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -318,6 +318,6 @@ dump_allocated_connections(FILE *fp)
fprintf(fp, "---%s:\n\tConnections: %d\n",
__FILE__,
no_of_allocated_connections);
fprintf(fp, "\tConnection attempts: %d\n",
no_of_connection_attempts);
fprintf(fp, "\tConnection attempts: %lu\n",
(unsigned long)no_of_connection_attempts);
}
/*
* $Id: simple-cache.c,v 0.40 1993/10/18 12:30:52 ceder Exp $
* $Id: simple-cache.c,v 0.41 1993/11/22 19:09:46 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.40 1993/10/18 12:30:52 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.41 1993/11/22 19:09:46 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -447,7 +447,7 @@ mark_text_as_changed( Text_no text_no )
node = get_text_node (text_no);
TRACE2("Text %d is changed.\n", text_no);
TRACE2("Text %u is changed.\n", text_no);
if ( text_no < 1 || text_no >= next_text_num
|| node == NULL || node->s.exists == 0)
{
......@@ -829,7 +829,7 @@ cached_get_text( Text_no text )
String the_string;
Text_stat *t_stat;
TRACE2("cached_get_text %d\n", text);
TRACE2("cached_get_text %u\n", text);
if ( (t_stat = cached_get_text_stat (text)) == NULL )
return EMPTY_STRING;
......@@ -858,7 +858,7 @@ cached_get_text_stat( Text_no text )
{
Cache_node *node;
TRACE2("cached_get_text_stat(%d); next_text_num == ", text);
TRACE2("cached_get_text_stat(%u); next_text_num == ", text);
TRACE2("%d\n", next_text_num);
if ( text == 0 )
......@@ -918,7 +918,7 @@ cached_create_text(const String message)
tno = next_text_num++;
TRACE2("cached_create_text (len=%d)\n", message.len);
TRACE2("cached_create_text (len=%u)\n", message.len);
if ( tno >= MAX_TEXT )
{
......@@ -956,7 +956,7 @@ cached_create_text(const String message)
fflush(text_file);
LOGACC(lt_create_text, tno);
TRACE2("cached_create_text -> %d\n", tno);
TRACE2("cached_create_text -> %u\n", tno);
return tno;
}
......@@ -1564,7 +1564,7 @@ save_one_pers(void)
}
else /* All persons are written. */
{
fprintf(file_b, "%d\n", highest_text_no); /* NEXT_TEXT_NUM */
fprintf(file_b, "%u\n", highest_text_no); /* NEXT_TEXT_NUM */
sync_next = 1;
sync_state = sync_save_text;
}
......
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