Commit 4c91113c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(simple_aux_item): Added a cast for the name.

(find_aux_item_definition): Added static modifier.
(find_aux_item_index): Ditto.
(aux_item_add_perm): Ditto.
(find_aux_item): Ditto.
(aux_item_trigger_mirror_faq): Ditto.
(aux_item_trigger_link_item): Ditto.
(aux_item_validate_existing_text): Ditto.
(aux_item_trigger_mark_text): Ditto.
(aux_item_trigger_unmark_text): Ditto.
parent 5f7991e7
/*
* $Id: aux-items.c,v 1.29 2001/09/30 16:52:02 ceder Exp $
* $Id: aux-items.c,v 1.30 2001/10/28 21:05:58 ceder Exp $
* Copyright (C) 1994-2001 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -75,15 +75,19 @@ static Aux_item_definition compiled_aux_items[] = {};
/* Forward declaration of triggers */
void aux_item_trigger_mark_text(Aux_item_trigger_data *);
void aux_item_trigger_unmark_text(Aux_item_trigger_data *);
void aux_item_trigger_mirror_faq(Aux_item_trigger_data *);
void aux_item_trigger_link_item(Aux_item_trigger_data *data);
static void aux_item_trigger_mark_text(Aux_item_trigger_data *);
static void aux_item_trigger_unmark_text(Aux_item_trigger_data *);
static void aux_item_trigger_mirror_faq(Aux_item_trigger_data *);
static void aux_item_trigger_link_item(Aux_item_trigger_data *data);
/* Forward declarations of validators */
Bool aux_item_validate_existing_text(Aux_item_validation_data *data);
static Bool aux_item_validate_existing_text(Aux_item_validation_data *data);
/* Other forward declarations */
static const Aux_item *
find_aux_item(const Aux_item_list *list, unsigned long aux_no);
......@@ -150,7 +154,7 @@ Aux_item_definition empty_aux_item_definition =
static Aux_item_definition simple_aux_item =
{
"simple", /* Name */
(char*)"simple", /* Name */
0, /* Tag */
{ 0,0,0,0,0,0,0,0 }, /* Clear flags */
{ 0,0,0,0,0,0,0,0 }, /* Set flags */
......@@ -288,7 +292,7 @@ aux_item_find_validator(const char *validator_name)
* have a valid information.
*/
const Aux_item_definition *
static const Aux_item_definition *
find_aux_item_definition(const Aux_item *item)
{
Aux_item_definition *def;
......@@ -560,7 +564,7 @@ free_aux_item_definitions(void)
long
static long
find_aux_item_index(const Aux_item_list *list, unsigned long aux_no)
{
unsigned long i;
......@@ -1061,7 +1065,7 @@ static Bool aux_item_validate(Aux_item_validation_data validation_data)
* CREATING is true if we are checking while creating an object
*/
Bool
static Bool
aux_item_add_perm(const Aux_item *item,
const Aux_item_definition *def,
Pers_no item_creator,
......@@ -1682,10 +1686,11 @@ void commit_aux_item_list(Aux_item_list *list_to_commit)
/*
* find_aux_item
*
* Return a pointer to the item in LIST with aux_no AUX-NO
* Return a pointer to the item in LIST with aux_no AUX-NO.
* Returns NULL if there is no such item.
*/
const Aux_item *
static const Aux_item *
find_aux_item(const Aux_item_list *list, unsigned long aux_no)
{
long item_index = find_aux_item_index(list, aux_no);
......@@ -1955,7 +1960,8 @@ query_predefined_aux_items(Number_list *result)
}
void aux_item_trigger_mark_text(Aux_item_trigger_data *data)
static void
aux_item_trigger_mark_text(Aux_item_trigger_data *data)
{
Text_no text_no;
Text_stat *text_stat;
......@@ -1968,7 +1974,8 @@ void aux_item_trigger_mark_text(Aux_item_trigger_data *data)
mark_text_as_changed(text_no);
}
void aux_item_trigger_unmark_text(Aux_item_trigger_data *data)
static void
aux_item_trigger_unmark_text(Aux_item_trigger_data *data)
{
Text_no text_no;
Text_stat *text_stat;
......@@ -1981,7 +1988,8 @@ void aux_item_trigger_unmark_text(Aux_item_trigger_data *data)
mark_text_as_changed(text_no);
}
void aux_item_trigger_mirror_faq(Aux_item_trigger_data *data)
static void
aux_item_trigger_mirror_faq(Aux_item_trigger_data *data)
{
Text_no text_no;
Aux_item item_data;
......@@ -2046,7 +2054,8 @@ void aux_item_trigger_mirror_faq(Aux_item_trigger_data *data)
* The created item will contain the same kind of information.
*/
void aux_item_trigger_link_item(Aux_item_trigger_data *data)
static void
aux_item_trigger_link_item(Aux_item_trigger_data *data)
{
char object_no_string[100];
char *tmp_str;
......@@ -2138,7 +2147,8 @@ void aux_item_trigger_link_item(Aux_item_trigger_data *data)
*/
Bool aux_item_validate_existing_text(Aux_item_validation_data *v_data)
static Bool
aux_item_validate_existing_text(Aux_item_validation_data *v_data)
{
Text_stat *text_stat;
Text_no text_no;
......
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