Commit e142dfc3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(get_version): Removed an unused variable.

parent 098639d0
/*
* $Id: simple-cache.c,v 0.61 1996/08/03 01:32:17 ceder Exp $
* $Id: simple-cache.c,v 0.62 1996/08/03 15:56:40 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 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.61 1996/08/03 01:32:17 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.62 1996/08/03 15:56:40 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -1362,14 +1362,13 @@ static long
get_version(const char *fn)
{
FILE *fp;
char c;
long version;
if ( (fp = fopen(fn, "rb")) == NULL)
return -1;
fseek(fp, 5, SEEK_SET);
if ( (c = getc(fp)) == '\n')
if (getc(fp) == '\n')
{
fclose(fp);
return 0;
......
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