summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/less.c7
-rw-r--r--miscutils/makedevs.c3
2 files changed, 1 insertions, 9 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 9dd9b9e..c13d7b8 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -872,14 +872,12 @@ static void save_input_to_file(void)
static void add_mark(void)
{
int letter;
- int mark_line;
clear_line();
printf("Mark: ");
letter = tless_getch();
if (isalpha(letter)) {
- mark_line = line_pos;
/* If we exceed 15 marks, start overwriting previous ones */
if (num_marks == 14)
@@ -927,19 +925,14 @@ static char opp_bracket(char bracket)
switch (bracket) {
case '{': case '[':
return bracket + 2;
- break;
case '(':
return ')';
- break;
case '}': case ']':
return bracket - 2;
- break;
case ')':
return '(';
- break;
default:
return 0;
- break;
}
}
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index 0ebb053..70dfc42 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -76,8 +76,7 @@ int makedevs_main(int argc, char **argv)
int linenum = 0;
int ret = EXIT_SUCCESS;
- unsigned long flags;
- flags = bb_getopt_ulflags(argc, argv, "d:", &line);
+ bb_getopt_ulflags(argc, argv, "d:", &line);
if (line)
table = xfopen(line, "r");