From c63085b227a3178d7943c5c4e53cd889bd081e1f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 5 Feb 1996 21:33:16 +0000 Subject: (line_write, line_fill, line_puts): Add `const' where appropriate. --- libshouldbeinlibc/=line.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/=line.h b/libshouldbeinlibc/=line.h index 3305cd3b..54ab15de 100644 --- a/libshouldbeinlibc/=line.h +++ b/libshouldbeinlibc/=line.h @@ -1,6 +1,6 @@ /* Simple output formatting functions - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Miles Bader @@ -106,13 +106,13 @@ line_putc (struct line *line, int ch) /* Adds the text in STR to LINE, wrapping words as necessary to fit. LMARGIN is the left margin used when wrapping. */ -void line_fill (struct line *line, char *str, unsigned lmargin); +void line_fill (struct line *line, const char *str, unsigned lmargin); /* Add STR, of length LEN, to LINE. */ -void line_write (struct line *line, char *str, unsigned len); +void line_write (struct line *line, const char *str, unsigned len); /* Add STR to LINE. */ -extern inline void line_puts (struct line *line, char *str) +extern inline void line_puts (struct line *line, const char *str) { line_write (line, str, strlen (str)); } -- cgit v1.2.3