From 76fc3b1b049c1540e954fa8978fe409ed15b1432 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Tue, 11 Dec 2018 22:29:20 +1100 Subject: [PATCH] Rename 'lines' variable to 'line_range' This avoids a conflict with the macro defined in . --- source/commands2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/commands2.c b/source/commands2.c index 50f58eb..8d48c70 100644 --- a/source/commands2.c +++ b/source/commands2.c @@ -1849,7 +1849,7 @@ int clones = 0; bitchsay("Found %d clones", clones); } -void get_range(char *line, int *start, int *end) +static void get_range(char *line, int *start, int *end) { char *q = line, *p = line; while (*p && isdigit((unsigned char)*p)) @@ -1864,7 +1864,7 @@ char *q = line, *p = line; BUILT_IN_COMMAND(pastecmd) { - char *lines; + char *line_range; char *channel = NULL; Window *win; int winref = 0; @@ -1877,8 +1877,8 @@ BUILT_IN_COMMAND(pastecmd) #else Display *start_pos; #endif - if ((lines = next_arg(args, &args))) - get_range(lines, &start_line, &end_line); + if ((line_range = next_arg(args, &args))) + get_range(line_range, &start_line, &end_line); if (!args || !*args) channel = get_current_channel_by_refnum(0); else