Commit d10bb92e authored by Per Cederqvist's avatar Per Cederqvist

(aux_item_def_typename): Added const qualifier to the return value.

(aux_item_def_check_assign): Added const qualifier to the id argument.
(aux_item_def_check_trigger): Added const qualifier to the check_name argument.
parent 2bab906e
%{ %{
/* /*
* $Id: aux-item-def.y,v 1.2 1998/06/14 14:50:41 byers Exp $ * $Id: aux-item-def.y,v 1.3 1998/07/08 15:57:53 ceder Exp $
* Copyright (C) 1994, 1995, 1996 Lysator Academic Computer Association. * Copyright (C) 1994, 1995, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -91,14 +91,14 @@ void yyerror(); ...@@ -91,14 +91,14 @@ void yyerror();
#endif #endif
struct aux_item_def_value_type; struct aux_item_def_value_type;
static int aux_item_def_check_assign(char *, static int aux_item_def_check_assign(const char *,
String, String,
void *, void *,
int, int,
struct aux_item_def_value_type *, struct aux_item_def_value_type *,
int); int);
static char *aux_item_def_typename(int); static const char *aux_item_def_typename(int);
short aux_item_def_check_trigger(char *check_name, short aux_item_def_check_trigger(const char *check_name,
int type, int type,
String trigger_name, String trigger_name,
String function_name, String function_name,
...@@ -323,7 +323,7 @@ void yyerror(const char *s, ...@@ -323,7 +323,7 @@ void yyerror(const char *s,
} }
#endif #endif
static char *aux_item_def_typename(int type) static const char *aux_item_def_typename(int type)
{ {
switch (type) switch (type)
{ {
...@@ -336,7 +336,7 @@ static char *aux_item_def_typename(int type) ...@@ -336,7 +336,7 @@ static char *aux_item_def_typename(int type)
} }
} }
static int aux_item_def_check_assign(char *id, static int aux_item_def_check_assign(const char *id,
String field, String field,
void *data, void *data,
int type, int type,
...@@ -378,7 +378,7 @@ static int aux_item_def_check_assign(char *id, ...@@ -378,7 +378,7 @@ static int aux_item_def_check_assign(char *id,
} }
} }
short aux_item_def_check_trigger(char *check_name, short aux_item_def_check_trigger(const char *check_name,
int type, int type,
String trigger_name, String trigger_name,
String function_name, String function_name,
......
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