Make cspace()'s second argument const. Make `escapes' in lputs() const.
This commit is contained in:
parent
05018c64fd
commit
dfb072f405
@ -50,7 +50,7 @@ extern int rflags; /* regex flags to use */
|
|||||||
|
|
||||||
void cfclose(struct s_command *, struct s_command *);
|
void cfclose(struct s_command *, struct s_command *);
|
||||||
void compile(void);
|
void compile(void);
|
||||||
void cspace(SPACE *, char *, size_t, enum e_spflag);
|
void cspace(SPACE *, const char *, size_t, enum e_spflag);
|
||||||
char *cu_fgets(char *, int, int *);
|
char *cu_fgets(char *, int, int *);
|
||||||
int mf_fgets(SPACE *, enum e_spflag);
|
int mf_fgets(SPACE *, enum e_spflag);
|
||||||
int lastline(void);
|
int lastline(void);
|
||||||
|
@ -471,7 +471,8 @@ lputs(s)
|
|||||||
char *s;
|
char *s;
|
||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
char *escapes, *p;
|
const char *escapes;
|
||||||
|
char *p;
|
||||||
struct winsize win;
|
struct winsize win;
|
||||||
static int termwidth = -1;
|
static int termwidth = -1;
|
||||||
|
|
||||||
@ -601,7 +602,7 @@ regsub(sp, string, src)
|
|||||||
void
|
void
|
||||||
cspace(sp, p, len, spflag)
|
cspace(sp, p, len, spflag)
|
||||||
SPACE *sp;
|
SPACE *sp;
|
||||||
char *p;
|
const char *p;
|
||||||
size_t len;
|
size_t len;
|
||||||
enum e_spflag spflag;
|
enum e_spflag spflag;
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user