Commit 530eede2 authored by Peter Pentchev's avatar Peter Pentchev

Fix some more C compiler warnings

parent 556593d6
......@@ -49,6 +49,7 @@
#define NDEBUG
#include <alloca.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -45,6 +45,7 @@
#include "config.h"
#include <alloca.h>
#include <assert.h>
#include <pwd.h>
#include <string.h>
......
......@@ -45,6 +45,7 @@
#include "config.h"
#include <alloca.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -46,6 +46,7 @@
#include "config.h"
#include <alloca.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......@@ -297,9 +298,7 @@ exh_subshell(void)
/* exh_subshell */
char *
exh_skip_expression(exp, separator)
char *exp;
char separator;
exh_skip_expression(char *exp, char separator)
/* returns a pointer to the first unmasked occurrence of the separator
* `separator'; separators within a range or prefixed by `\' are ignored.
* if no separator is found, 0 is returned.
......@@ -333,9 +332,7 @@ exh_skip_expression(exp, separator)
/* exh_skip_expression */
char *
exh_skip_replace(exp, separator)
char *exp;
char separator;
exh_skip_replace(char *exp, char separator)
/* similar to `exh_skip_expression()', but ignores the special meaning of
* brackets.
*/
......
......@@ -45,6 +45,7 @@
#include "config.h"
#include <alloca.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -47,6 +47,7 @@
#include "config.h"
#include <alloca.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
......@@ -61,11 +62,7 @@
#define MAP_MAXLEN 256
#define MAP_MAX 16
#if ('\e' == 'e')
#define MAP_ESC ((char)27)
#else
#define MAP_ESC ('\e')
#endif
#define MAP_ESC ('\033')
int tio_m_remap = 0;
/* if `tio_m_remap == 1', the sequence of keys another sequence is mapped
......
......@@ -70,11 +70,7 @@
* partially scrolled out to the left */
#define RL_RIGHT_MORE "@Ab>@~" /* character displayed if the line is
* partially scrolled out to the right */
#if ('\e' == 'e')
#define RL_ESC ((char)27)
#else
#define RL_ESC ('\e')
#endif
#define RL_ESC ('\033')
/* strings:
* `readline()' returns strings of characters. special characters (like
......
......@@ -49,6 +49,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <assert.h>
#include <ctype.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment