cvs commit: patches/nas nas-1.6-bison-fix.patch

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sun Oct 5 08:23:32 PDT 2003


tushar      03/10/05 09:23:32

  Added:       nas      nas-1.6-bison-fix.patch
  Log:
  Added nas-1.6-bison-fix.patch
  
  Revision  Changes    Path
  1.1                  patches/nas/nas-1.6-bison-fix.patch
  
  Index: nas-1.6-bison-fix.patch
  ===================================================================
  Submitted By: Tushar Teredesai <tushar at linuxfromscratch.org>
  Date: 2003-10-05
  Initial Package Version: 1.6
  Origin: None
  Description: Fix compilation with recent versions of bison.
  diff -ur nas-1.6.orig/server/dia/gram.y nas-1.6/server/dia/gram.y
  --- nas-1.6.orig/server/dia/gram.y	2002-07-09 21:28:41.000000000 -0500
  +++ nas-1.6/server/dia/gram.y	2002-11-15 11:32:30.000000000 -0600
  @@ -142,11 +142,13 @@
   		| GAIN number
   			{ ddaSetConfig(GAIN, (void *)$2); }
   
  +		;
   string		: STRING		{ ptr = (char *)malloc(strlen($1)+1);
   					  strcpy(ptr, $1);
   					  RemoveDQuote(ptr);
   					  $$ = ptr;
   					}
  +		;
   number		: NUMBER		{ $$ = $1; }
   		;
   
  
  
  



More information about the patches mailing list