Prototype yylex in error_table.y to remove warning
Fix the bizarre definition of LOCK_ET_LIST so that it upsets neither the
compiler, nor the reader.
Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/169
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>
#define LOCK_ET_LIST \
do { \
- (et_list_done || pthread_once(&et_list_once, et_mutex_once)); \
+ if (!et_list_done) \
+ pthread_once(&et_list_once, et_mutex_once); \
assert(pthread_mutex_lock(&et_list_mutex)==0); \
} while (0)
#define UNLOCK_ET_LIST assert(pthread_mutex_unlock(&et_list_mutex)==0)
void set_table_num(char *string);
void set_table_fun(char *astring);
+extern int yylex (void);
+
%}
%union {
char *dynstr;