Author: brooks
Date: Wed Aug  8 22:45:30 2018
New Revision: 337508
URL: https://svnweb.freebsd.org/changeset/base/337508

Log:
  Terminate filter_create_ext() args with NULL, not 0.
  
  filter_create_ext() is documented to take a NULL terminated set of
  arguments.  0 is promoted to an int so this would fail on 64-bit
  systems if the value was not passed in a register.  On all currently
  supported 64-bit architectures it is.
  
  Obtained from:        CheriBSD
  Sponsored by: DARPA, AFRL

Modified:
  head/contrib/flex/main.c

Modified: head/contrib/flex/main.c
==============================================================================
--- head/contrib/flex/main.c    Wed Aug  8 22:42:03 2018        (r337507)
+++ head/contrib/flex/main.c    Wed Aug  8 22:45:30 2018        (r337508)
@@ -364,7 +364,7 @@ void check_options ()
     output_chain = filter_create_int(NULL, filter_tee_header, headerfilename);
     if ( !(m4 = getenv("M4")))
         m4 = M4;
-    filter_create_ext(output_chain, m4, "-gP", 0);
+    filter_create_ext(output_chain, m4, "-gP", NULL);
     filter_create_int(output_chain, filter_fix_linedirs, NULL);
 
     /* For debugging, only run the requested number of filters. */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to