home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / utils / bug / 2011 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.9 KB  |  61 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinard
  3. From: pinard@icule.UUCP (Francois Pinard)
  4. Subject: GNU sed 1.12 installation
  5. Message-ID: <9211072159.AA28318@icule.UUCP>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: pinard@iro.umontreal.ca
  8. Organization: GNUs Not Usenet
  9. Distribution: gnu
  10. Date: Sat, 7 Nov 1992 21:59:40 GMT
  11. Approved: bug-gnu-utils@prep.ai.mit.edu
  12. Lines: 47
  13.  
  14. This pertains to GNU sed 1.12 installation, using GNU C 1.41 under
  15. COFF encapsulation, on this 386/ix 2.0.2 system, waiting for Hurd :-).
  16.  
  17. The installation went easily, save for a few compiler warnings:
  18.  
  19. ----->
  20. sed.c: In function main:
  21. sed.c:406: warning: argument passing between incompatible pointer types
  22. sed.c:413: warning: argument passing between incompatible pointer types
  23. sed.c: In function compile_string:
  24. sed.c:481: warning: argument passing between incompatible pointer types
  25. -----<
  26.  
  27. Here is a diff which gets rid of them:
  28.  
  29. --- 1.1    1992/11/07 21:50:18
  30. +++ sed-1.12/sed.c    1992/11/07 21:51:59
  31. @@ -233,7 +233,7 @@
  32.  void add1_buffer P_ ((VOID * bb, int ch));
  33.  char *get_buffer P_ ((VOID * bb));
  34.  
  35. -void compile_string P_ ((unsigned char *str));
  36. +void compile_string P_ ((char *str));
  37.  void compile_file P_ ((char *str));
  38.  struct vector *compile_program P_ ((struct vector * vector));
  39.  void bad_prog P_ ((char *why));
  40. @@ -473,12 +473,12 @@
  41.     Compile the command, and add it to the end of 'the_program' */
  42.  void
  43.  compile_string (str)
  44. -     unsigned char *str;
  45. +     char *str;
  46.  {
  47.    prog_file = 0;
  48.    prog_line = 0;
  49. -  prog_start = prog_cur = str;
  50. -  prog_end = str + strlen (str);
  51. +  prog_start = prog_cur = (unsigned char *) str;
  52. +  prog_end = (unsigned char *) str + strlen (str);
  53.    the_program = compile_program (the_program);
  54.  }
  55.  
  56. -- 
  57. Franc,ois Pinard        ``Vivement GNU!''       pinard@iro.umontreal.ca
  58. (514) 588-4656                                   ...!uunet!iros1!pinard
  59. About the League for Programming Freedom?  Email me or lpf@uunet.uu.net
  60.  
  61.