Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2010 19:00:22 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214990 - head/usr.bin/yacc
Message-ID:  <201011081900.oA8J0MRe046767@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: obrien
Date: Mon Nov  8 19:00:22 2010
New Revision: 214990
URL: http://svn.freebsd.org/changeset/base/214990

Log:
  Back out r214961 for skeleton.c -- it broke the groff build.

Modified:
  head/usr.bin/yacc/skeleton.c

Modified: head/usr.bin/yacc/skeleton.c
==============================================================================
--- head/usr.bin/yacc/skeleton.c	Mon Nov  8 15:59:41 2010	(r214989)
+++ head/usr.bin/yacc/skeleton.c	Mon Nov  8 19:00:22 2010	(r214990)
@@ -157,14 +157,14 @@ const char *body[] =
     "    else if ((newsize *= 2) > YYMAXDEPTH)",
     "        newsize = YYMAXDEPTH;",
     "    i = yyssp - yyss;",
-    "    newss = yyss ? realloc(yyss, newsize * sizeof *newss) :",
-    "      malloc(newsize * sizeof *newss);",
+    "    newss = yyss ? (short *)realloc(yyss, newsize * sizeof *newss) :",
+    "      (short *)malloc(newsize * sizeof *newss);",
     "    if (newss == NULL)",
     "        return -1;",
     "    yyss = newss;",
     "    yyssp = newss + i;",
-    "    newvs = yyvs ? realloc(yyvs, newsize * sizeof *newvs) :",
-    "      malloc(newsize * sizeof *newvs);",
+    "    newvs = yyvs ? (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs) :",
+    "      (YYSTYPE *)malloc(newsize * sizeof *newvs);",
     "    if (newvs == NULL)",
     "        return -1;",
     "    yyvs = newvs;",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011081900.oA8J0MRe046767>