Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
50379cc4
Commit
50379cc4
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide an unneeded pointer
parent
e2d3ee23
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+5
-6
src/text.c
with
5 additions
and
6 deletions
+5
-6
src/text.c
View file @
50379cc4
...
...
@@ -3030,14 +3030,13 @@ void do_spell(void)
* termination, and the error string otherwise. */
void
do_linter
(
void
)
{
char
*
read_buff
,
*
read_buff_ptr
,
*
read_buff_word
,
*
ptr
;
char
*
read_buff
,
*
read_buff_ptr
,
*
read_buff_word
,
*
ptr
,
*
lintcopy
;
size_t
pipe_buff_size
,
read_buff_size
,
read_buff_read
,
bytesread
;
size_t
parsesuccess
=
0
;
int
lint_status
,
lint_fd
[
2
];
pid_t
pid_lint
;
static
int
arglen
=
3
;
static
char
**
lintargs
=
NULL
;
char
*
lintcopy
,
*
convendptr
=
NULL
;
lintstruct
*
lints
=
NULL
,
*
tmplint
=
NULL
,
*
curlint
=
NULL
;
if
(
ISSET
(
RESTRICTED
))
{
...
...
@@ -3166,15 +3165,15 @@ void do_linter(void)
continue
;
}
tmpcolno
=
strtol
(
maybecol
,
&
convendptr
,
10
);
tmpcolno
=
strtol
(
maybecol
,
NULL
,
10
);
/* Check if the middle field is in comma format. */
if
(
*
convendptr
!=
'\0'
)
{
if
(
tmpcolno
<=
0
)
{
strtok
(
linestr
,
","
);
if
((
tmplinecol
=
strtok
(
NULL
,
","
))
!=
NULL
)
tmpcolno
=
strtol
(
tmplinecol
,
NULL
,
10
);
else
tmpcolno
=
1
;
}
if
(
tmpcolno
<=
0
)
tmpcolno
=
1
;
/* Nice. We have a lint message we can use. */
parsesuccess
++
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help