ANSI-fication and lots of minor fixes inspired by Sparse warnings.

This commit is contained in:
Joachim Nilsson
2010-07-17 22:38:05 +02:00
parent 4c9c71faae
commit 34a314c8e7
4 changed files with 45 additions and 58 deletions

View File

@@ -532,7 +532,7 @@ static el_status_t h_last(void)
/*
** Return zero if pat appears as a substring in text.
*/
static int substrcmp(char *text, char *pat, int len)
static int substrcmp(const char *text, const char *pat, size_t len)
{
char c;
@@ -549,7 +549,7 @@ static const char *search_hist(const char *search, const char *(*move)())
static char *old_search;
int len;
int pos;
int (*match)();
int (*match)(const char *s1, const char *s2, size_t n);
char *pat;
/* Save or get remembered search pattern. */