Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Francois Pinard
Sat, 07 Nov 1992 21:59
GNU sed 1.12 installation
Author: Francois Pinard
Date: Sat, 07 Nov 1992 21:59
Date: Sat, 07 Nov 1992 21:59
46 lines
2021 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads