Commit 6149e13a authored by Per Cederqvist's avatar Per Cederqvist

(read_config): Use i_fopen and i_fclose instead of fopen and fclose.

parent 18996d95
/*
* $Id: conf-file.c,v 1.24 2002/10/23 08:43:10 ceder Exp $
* $Id: conf-file.c,v 1.25 2002/10/31 09:30:31 ceder Exp $
* Copyright (C) 1994-1995, 1998-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -58,6 +58,7 @@
#include "kom-types.h"
#include "conf-file.h"
#include "lyskomd.h"
#include "eintr.h"
#define MAXLINE 1001
......@@ -220,13 +221,13 @@ read_config(const char *config_file,
init_init(par);
fp = fopen(config_file, "r");
fp = i_fopen(config_file, "r");
if (fp == NULL)
restart_kom("cannot open config file %s\n", config_file);
while (configure_line(fp, par, &errs) != EOF)
;
fclose(fp);
i_fclose(fp);
assign_defaults(par, &errs);
if (errs)
......
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