Commit 35ba9d95 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include async.h before connections.h.

Include string.h.
(TIMESTAMP_FORMAT): Unused define removed.
(pre_sync): Removed a call to time() whose return value was never used.
parent 80513dab
/*
* $Id: simple-cache.c,v 0.53 1996/02/23 16:00:29 byers Exp $
* $Id: simple-cache.c,v 0.54 1996/07/25 02:28:59 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,13 +33,16 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.53 1996/02/23 16:00:29 byers Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.54 1996/07/25 02:28:59 ceder Exp $";
#include "rcs.h"
USE(rcsid);
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#include <unistd.h>
#ifndef SEEK_END
# include <fcntl.h>
......@@ -72,6 +75,7 @@ USE(rcsid);
#include "kom-errno.h"
#include "log.h"
#include "com.h"
#include "async.h"
#include "connections.h"
#include "send-async.h"
#include "param.h"
......@@ -207,8 +211,6 @@ static void log_access(Log_type t,
#define TRACE1(format) if ( buglevel > 2 ) printf(format)
#define TRACESTR(str) if ( buglevel > 2 ) s_puts(str)
#define TIMESTAMP_FORMAT "%y %m %d %H %M %S"
static Person *
read_person(FILE *fp,
......@@ -1379,7 +1381,6 @@ pre_sync(void)
{
long i;
Cache_node *node;
time_t now;
async_sync_db();
......@@ -1513,7 +1514,6 @@ pre_sync(void)
fprintf(file_b, "DIRTY:%05ld\n", 1L); /* DIRTY-FLAG and VERSION*/
now = time(NULL);
fprintf(file_b, "#C %d\n", highest_conf_no);
fprintf(file_b, "#T %ld\n", highest_text_no);
fprintf(file_b, "I %d %d %d %d %ld\n",
......
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