X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/8e43b0b4146cdbacec61e83e8b8251c0b5a090c9..d25c6eb1b223d1a0993dde9a28c97ef95e54bceb:/src/ircd_parser.y diff --git a/src/ircd_parser.y b/src/ircd_parser.y index 0f80617..90f183a 100644 --- a/src/ircd_parser.y +++ b/src/ircd_parser.y @@ -25,9 +25,9 @@ #define YY_NO_UNPUT -int yyparse(); +int yyparse(void); int yyerror(const char *); -int yylex(); +int yylex(void); static time_t conf_find_time(char*); @@ -152,7 +152,7 @@ static void add_cur_list(int type, char *str, int number) break; case CF_STRING: case CF_QSTRING: - DupString(new->v.string, str); + new->v.string = rb_strdup(str); break; } @@ -255,7 +255,7 @@ oneitem: qstring { $$ = rb_malloc(sizeof(conf_parm_t)); $$->type = CF_QSTRING; - DupString($$->v.string, $1); + $$->v.string = rb_strdup($1); } | timespec { @@ -285,7 +285,7 @@ oneitem: qstring else { $$->type = CF_STRING; - DupString($$->v.string, $1); + $$->v.string = rb_strdup($1); } } ; @@ -296,7 +296,7 @@ loadmodule: #ifndef STATIC_MODULES char *m_bn; - m_bn = irc_basename((char *) $2); + m_bn = rb_basename((char *) $2); if (findmodule_byname(m_bn) == -1) load_one_module($2, 0);