diff options
author | markm <markm@FreeBSD.org> | 2001-12-02 23:40:46 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-02 23:40:46 +0000 |
commit | 6aad061ae72991511c19b2a0ffdda6d071ccb1bd (patch) | |
tree | 77671be032d017fcc1795356679eb6222071c15a /usr.bin/colldef/parse.y | |
parent | 8896138d554d35b01373620fbe55221f586eda5b (diff) | |
download | FreeBSD-src-6aad061ae72991511c19b2a0ffdda6d071ccb1bd.zip FreeBSD-src-6aad061ae72991511c19b2a0ffdda6d071ccb1bd.tar.gz |
WARNS=2 fixup.
Use __FBSDID().
Set NO_WERROR because this would rely on some lex(1) fixes that
cannot be committed yet.
Diffstat (limited to 'usr.bin/colldef/parse.y')
-rw-r--r-- | usr.bin/colldef/parse.y | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/usr.bin/colldef/parse.y b/usr.bin/colldef/parse.y index ae7f06e..b7ef565 100644 --- a/usr.bin/colldef/parse.y +++ b/usr.bin/colldef/parse.y @@ -24,10 +24,12 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #include <err.h> #include <stdarg.h> #include <stdio.h> @@ -39,10 +41,11 @@ #include "common.h" extern FILE *yyin; -void yyerror(char *fmt, ...) __printflike(1, 2); +void yyerror(const char *fmt, ...) __printflike(1, 2); int yyparse(void); int yylex(void); -static void usage __P((void)); +static void usage(void); +static void collate_print_tables(void); char map_name[FILENAME_MAX] = "."; @@ -57,7 +60,7 @@ int prim_pri = 1, sec_pri = 1; int debug; #endif -char *out_file = "LC_COLLATE"; +const char *out_file = "LC_COLLATE"; %} %union { u_char ch; @@ -231,6 +234,7 @@ sec_sub_item : CHAR { %% int main(ac, av) + int ac; char **av; { int ch; @@ -278,7 +282,8 @@ usage() exit(EX_USAGE); } -void yyerror(char *fmt, ...) +void +yyerror(const char *fmt, ...) { va_list ap; char msg[128]; @@ -290,8 +295,8 @@ void yyerror(char *fmt, ...) } #ifdef COLLATE_DEBUG -void -collate_print_tables() +static void +collate_print_tables(void) { int i; struct __collate_st_chain_pri *p2; |