Commit 9267866b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Use ``enum call_header'' instead of ``Call_header''. (Bug 335).

parent b4a58479
2001-12-28 Per Cederqvist <ceder@moria>
Use ``enum call_header'' instead of ``Call_header''. (Bug 335).
* src/server/connections.h: Use ``enum call_header'' instead of
``Call_header''.
* src/server/prot-a.c: Ditto.
* src/server/com-h.awk: Don't create the Call_header typedef.
Use ``enum access'' instead of ``Access''. (Bug 335).
* src/server/manipulate.h: Use ``enum access'' instead of
``Access''.
......
/*
* $Id: connections.h,v 0.46 2000/09/06 19:54:30 ceder Exp $
* $Id: connections.h,v 0.47 2001/12/28 20:04:53 ceder Exp $
* Copyright (C) 1991-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: connections.h,v 0.46 2000/09/06 19:54:30 ceder Exp $
* $Id: connections.h,v 0.47 2001/12/28 20:04:53 ceder Exp $
*
* connections.h -- The top level of the communication packet.
*
......@@ -80,7 +80,7 @@ typedef struct connection {
int array_hunt_depth;
int ref_no;
Call_header function; /* Function to call. */
enum call_header function; /* Function to call. */
int function_index; /* Index of function in server tables*/
/* Gather data in these variables. */
......@@ -241,8 +241,8 @@ typedef union {
typedef struct {
Call_header function;
Res_type result;
enum call_header function;
Res_type result;
/* The function that is used to parse args for this function: */
void (*parser)(Connection *client);
} Fnc_descriptor;
......
/*
* $Id: prot-a.c,v 0.64 2001/11/04 21:03:49 ceder Exp $
* $Id: prot-a.c,v 0.65 2001/12/28 20:05:07 ceder Exp $
* Copyright (C) 1991-2000 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -367,7 +367,7 @@ prot_a_destruct(Connection *conn)
* Check if it is a legal function.
*/
static int
prot_a_is_legal_fnc(Call_header fnc)
prot_a_is_legal_fnc(enum call_header fnc)
{
#include "prot-a-is-legal-fnc.incl"
}
......
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