=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/filter.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/lex/filter.c 2015/11/19 23:20:34 1.5 --- src/usr.bin/lex/filter.c 2015/11/19 23:28:03 1.6 *************** *** 1,4 **** ! /* $OpenBSD: filter.c,v 1.5 2015/11/19 23:20:34 tedu Exp $ */ /* filter - postprocessing of flex output through filters */ --- 1,4 ---- ! /* $OpenBSD: filter.c,v 1.6 2015/11/19 23:28:03 tedu Exp $ */ /* filter - postprocessing of flex output through filters */ *************** *** 50,56 **** va_list ap; /* allocate and initialize new filter */ ! f = (struct filter *) malloc(sizeof(struct filter)); if (!f) flexerror(_("malloc failed (f) in filter_create_ext")); memset(f, 0, sizeof(*f)); --- 50,56 ---- va_list ap; /* allocate and initialize new filter */ ! f = malloc(sizeof(struct filter)); if (!f) flexerror(_("malloc failed (f) in filter_create_ext")); memset(f, 0, sizeof(*f)); *************** *** 103,109 **** struct filter *f; /* allocate and initialize new filter */ ! f = (struct filter *) malloc(sizeof(struct filter)); if (!f) flexerror(_("malloc failed in filter_create_int")); memset(f, 0, sizeof(*f)); --- 103,109 ---- struct filter *f; /* allocate and initialize new filter */ ! f = malloc(sizeof(struct filter)); if (!f) flexerror(_("malloc failed in filter_create_int")); memset(f, 0, sizeof(*f)); *************** *** 293,299 **** fprintf(to_c, "m4_define( [[M4_YY_OUTFILE_NAME]],[[%s]])m4_dnl\n", outfilename ? outfilename : ""); ! buf = (char *) malloc(readsz); if (!buf) flexerror(_("malloc failed in filter_tee_header")); while (fgets(buf, readsz, stdin)) { --- 293,299 ---- fprintf(to_c, "m4_define( [[M4_YY_OUTFILE_NAME]],[[%s]])m4_dnl\n", outfilename ? outfilename : ""); ! buf = malloc(readsz); if (!buf) flexerror(_("malloc failed in filter_tee_header")); while (fgets(buf, readsz, stdin)) { *************** *** 357,363 **** if (!chain) return 0; ! buf = (char *) malloc(readsz); if (!buf) flexerror(_("malloc failed in filter_fix_linedirs")); --- 357,363 ---- if (!chain) return 0; ! buf = malloc(readsz); if (!buf) flexerror(_("malloc failed in filter_fix_linedirs"));