🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1052

GNU sed 1.12 installation

#1052
From: Francois Pinard
Date: Sat, 07 Nov 1992 21:59
46 lines
2021 bytes
This pertains to GNU sed 1.12 installation, using GNU C 1.41 under
COFF encapsulation, on this 386/ix 2.0.2 system, waiting for Hurd :-).

The installation went easily, save for a few compiler warnings:

----->
sed.c: In function main:
sed.c:406: warning: argument passing between incompatible pointer types
sed.c:413: warning: argument passing between incompatible pointer types
sed.c: In function compile_string:
sed.c:481: warning: argument passing between incompatible pointer types
-----<

Here is a diff which gets rid of them:

--- 1.1	1992/11/07 21:50:18
+++ sed-1.12/sed.c	1992/11/07 21:51:59
@@ -233,7 +233,7 @@
 void add1_buffer P_ ((VOID * bb, int ch));
 char *get_buffer P_ ((VOID * bb));
 
-void compile_string P_ ((unsigned char *str));
+void compile_string P_ ((char *str));
 void compile_file P_ ((char *str));
 struct vector *compile_program P_ ((struct vector * vector));
 void bad_prog P_ ((char *why));
@@ -473,12 +473,12 @@
    Compile the command, and add it to the end of 'the_program' */
 void
 compile_string (str)
-     unsigned char *str;
+     char *str;
 {
   prog_file = 0;
   prog_line = 0;
-  prog_start = prog_cur = str;
-  prog_end = str + strlen (str);
+  prog_start = prog_cur = (unsigned char *) str;
+  prog_end = (unsigned char *) str + strlen (str);
   the_program = compile_program (the_program);
 }

-- 
Franc,ois Pinard        ``Vivement GNU!''       pinard@iro.umontreal.ca
(514) 588-4656                                   ...!uunet!iros1!pinard
About the League for Programming Freedom?  Email me or lpf@uunet.uu.net
Technical Details
Message-ID: <9211072159.AA28318@icule.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinard

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinard
From: pinard@icule.UUCP (Francois Pinard)
Subject: GNU sed 1.12 installation
Message-ID: <9211072159.AA28318@icule.UUCP>
Sender: gnulists@ai.mit.edu
Reply-To: pinard@iro.umontreal.ca
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 7 Nov 1992 21:59:40 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 47