Commit 7c016e48 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use init_foo() instead fo EMPTY_FOO.

parent 2f61d7ca
/*
* $Id: ram-parse.c,v 0.16 1993/10/18 12:30:24 ceder Exp $
* $Id: ram-parse.c,v 0.17 1994/02/19 04:04:12 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -29,7 +29,7 @@
* ram-parse.c -- parse objects from disk file.
*/
static char *rcsid = "$Id: ram-parse.c,v 0.16 1993/10/18 12:30:24 ceder Exp $";
static char *rcsid = "$Id: ram-parse.c,v 0.17 1994/02/19 04:04:12 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -50,6 +50,7 @@ USE(rcsid);
#include "log.h"
#include "server/smalloc.h"
#include "kom-errno.h"
#include "kom-memory.h"
/*
* BUGS: Not all functions are needed.
......@@ -371,7 +372,7 @@ fparse_membership_list(FILE *fp,
for ( i = 0; i < result->no_of_confs; i++)
{
result->confs[ i ] = EMPTY_MEMBERSHIP;
init_membership(&result->confs[ i ]);
if ( fparse_membership(fp, &result->confs[i]) != OK )
return FAILURE;
}
......@@ -1087,7 +1088,7 @@ fparse_who_info_list(FILE *fp,
for ( i = 0; i < result->no_of_persons; i++)
{
result->info[ i ] = EMPTY_WHO_INFO;
init_who_info(&result->info[ i ]);
if ( fparse_who_info(fp, &result->info[ i ]) != OK )
return FAILURE;
}
......
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