Commit be3375fc authored by Per Cederqvist's avatar Per Cederqvist

(foutput_person_0): Added const qualifier to the person argument.

(foutput_person_2): Likewise.
(foutput_person): Likewise.
(foutput_conference_2): Added const qualifier to the conf_c argument.
(foutput_aux_flags): Now static.
(foutput_aux_item): Now static.
(foutput_aux_item_list): Now static.  Added const qualifier to the
	aux argument.
(foutput_membership_type): Now static.
(foutput_string): Now static.
(foutput_priv_bits): Now static.
(foutput_personal_flags): Now static.
(foutput_text_list): Now static.
(foutput_mark_list): Added const qualifier to the mark_list argument.
(foutput_mark): Now static.
(foutput_membership_list): Now static.
(foutput_time): Now static.
(foutput_member_list): Now static.
(foutput_member): Now static.
(foutput_conf_type): Now static.
(foutput_misc_info): Now static.
(foutput_ulong): Now static.
parent 359714e3
/*
* $Id: ram-output.c,v 0.28 1999/01/13 12:08:36 byers Exp $
* $Id: ram-output.c,v 0.29 1999/04/05 16:19:26 ceder Exp $
* Copyright (C) 1991, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -39,7 +39,7 @@
#endif
static const char *
rcsid = "$Id: ram-output.c,v 0.28 1999/01/13 12:08:36 byers Exp $";
rcsid = "$Id: ram-output.c,v 0.29 1999/04/05 16:19:26 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -57,6 +57,23 @@ USE(rcsid);
#include "log.h"
#include "local-to-global.h"
/* Forward declarations. */
static void foutput_aux_item_list(FILE *, const Aux_item_list *);
static void foutput_conf_type (FILE *, Conf_type);
static void foutput_mark(FILE *, Mark);
static void foutput_mark_list(FILE *, const Mark_list);
static void foutput_member(FILE *, Member);
static void foutput_member_list(FILE *, Member_list);
static void foutput_membership_list(FILE *, Membership_list);
static void foutput_misc_info(FILE *, Misc_info);
static void foutput_personal_flags(FILE *, Personal_flags);
static void foutput_priv_bits(FILE *, Priv_bits);
static void foutput_string(FILE *, String);
static void foutput_text_list(FILE *, const Local_to_global *);
static void foutput_time(FILE *, time_t);
static void foutput_ulong(unsigned long, FILE *);
static int output_format = 2;
void
......@@ -120,7 +137,7 @@ void foutput_info(FILE *fp, Info *info)
static void
foutput_person_0 (FILE *fp,
Person *person)
const Person *person)
{
foutput_string (fp, person->username);
foutput_priv_bits (fp, person->privileges);
......@@ -147,8 +164,8 @@ foutput_person_0 (FILE *fp,
}
static void
foutput_person_2 (FILE *fp,
Person *person)
foutput_person_2(FILE *fp,
const Person *person)
{
foutput_string (fp, person->username);
foutput_priv_bits (fp, person->privileges);
......@@ -174,9 +191,9 @@ foutput_person_2 (FILE *fp,
(unsigned long) person -> created_confs);
}
void
extern void
foutput_person (FILE *fp,
Person *person)
const Person *person)
{
switch(output_format)
{
......@@ -195,8 +212,8 @@ foutput_person (FILE *fp,
static void
foutput_conference_2 (FILE *fp,
Conference *conf_c)
foutput_conference_2(FILE *fp,
const Conference *conf_c)
{
foutput_string(fp, conf_c->name);
foutput_member_list(fp, conf_c->members);
......@@ -362,7 +379,7 @@ foutput_text_stat(FILE *fp,
void
static void
foutput_aux_flags(FILE *fp,
Aux_item_flags f)
{
......@@ -377,7 +394,7 @@ foutput_aux_flags(FILE *fp,
putc(f.reserved5 + '0', fp);
}
void
static void
foutput_aux_item(FILE *fp,
Aux_item *a_item)
{
......@@ -390,9 +407,9 @@ foutput_aux_item(FILE *fp,
foutput_string(fp, a_item->data);
}
void
static void
foutput_aux_item_list(FILE *fp,
Aux_item_list *aux)
const Aux_item_list *aux)
{
int i;
......@@ -409,7 +426,7 @@ foutput_aux_item_list(FILE *fp,
}
void
static void
foutput_membership_type(FILE *fp,
Membership_type type)
{
......@@ -494,7 +511,7 @@ foutput_membership_2(FILE *fp,
}
void
extern void
foutput_membership(FILE *fp,
Membership *mship)
{
......@@ -515,7 +532,7 @@ foutput_membership(FILE *fp,
extern void
static void
foutput_string(FILE *fp,
String str)
{
......@@ -526,7 +543,7 @@ foutput_string(FILE *fp,
fwrite(str.string, str.len, 1, fp);
}
extern void
static void
foutput_priv_bits(FILE *fp,
Priv_bits bits)
{
......@@ -549,7 +566,7 @@ foutput_priv_bits(FILE *fp,
putc(bits.flg16 + '0', fp);
}
extern void
static void
foutput_personal_flags(FILE *fp,
Personal_flags flags)
{
......@@ -565,7 +582,7 @@ foutput_personal_flags(FILE *fp,
}
void
static void
foutput_text_list(FILE *fp,
const Local_to_global *text_list)
{
......@@ -595,7 +612,7 @@ foutput_text_list(FILE *fp,
void
foutput_mark_list(FILE *fp,
Mark_list mark_list)
const Mark_list mark_list)
{
int i;
......@@ -614,7 +631,7 @@ foutput_mark_list(FILE *fp,
}
extern void
static void
foutput_mark(FILE *fp,
Mark mark)
{
......@@ -659,7 +676,7 @@ foutput_membership_list_2 (FILE * fp,
fprintf(fp, " *");
}
void
static void
foutput_membership_list(FILE * fp,
Membership_list mlist)
{
......@@ -678,7 +695,7 @@ foutput_membership_list(FILE * fp,
}
}
void
static void
foutput_time(FILE *fp,
time_t clk)
{
......@@ -686,7 +703,7 @@ foutput_time(FILE *fp,
}
extern void
static void
foutput_member_list(FILE *fp,
Member_list m_list)
{
......@@ -723,7 +740,7 @@ foutput_member_2(FILE *fp,
foutput_membership_type(fp, member.type);
}
void
static void
foutput_member(FILE *fp,
Member member)
{
......@@ -768,7 +785,7 @@ foutput_conf_type_0(FILE *fp,
putc(type.letter_box + '0', fp);
}
extern void
static void
foutput_conf_type (FILE *fp,
Conf_type type)
{
......@@ -788,7 +805,7 @@ foutput_conf_type (FILE *fp,
}
extern void
static void
foutput_misc_info(FILE *fp,
Misc_info misc)
{
......@@ -853,7 +870,7 @@ foutput_misc_info(FILE *fp,
* FP. Ok, it's ugly, but it's fast (or is it?).
*/
void
static void
foutput_ulong (unsigned long l,
FILE *fp)
{
......
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