Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
27d41fb4
Commit
27d41fb4
authored
Feb 21, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* movemail.c (main, pop_retr): Rename locals to avoid shadowing.
parent
b23b5a5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
lib-src/ChangeLog
lib-src/ChangeLog
+2
-0
lib-src/movemail.c
lib-src/movemail.c
+11
-11
No files found.
lib-src/ChangeLog
View file @
27d41fb4
2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
* movemail.c (main, pop_retr): Rename locals to avoid shadowing.
Declare file-scope functions and variables static if not exported.
This is more consistent, and is nicer with gcc -Wstrict-prototypes.
* ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
...
...
lib-src/movemail.c
View file @
27d41fb4
...
...
@@ -169,7 +169,7 @@ main (int argc, char **argv)
char
*
inname
,
*
outname
;
int
indesc
,
outdesc
;
ssize_t
nread
;
int
status
;
int
wait_
status
;
int
c
,
preserve_mail
=
0
;
#ifndef MAIL_USE_SYSTEM_LOCK
...
...
@@ -527,11 +527,11 @@ main (int argc, char **argv)
exit
(
EXIT_SUCCESS
);
}
wait
(
&
status
);
if
(
!
WIFEXITED
(
status
))
wait
(
&
wait_
status
);
if
(
!
WIFEXITED
(
wait_
status
))
exit
(
EXIT_FAILURE
);
else
if
(
WRETCODE
(
status
)
!=
0
)
exit
(
WRETCODE
(
status
));
else
if
(
WRETCODE
(
wait_
status
)
!=
0
)
exit
(
WRETCODE
(
wait_
status
));
#if !defined (MAIL_USE_MMDF) && !defined (MAIL_USE_SYSTEM_LOCK)
#ifdef MAIL_USE_MAILLOCK
...
...
@@ -828,10 +828,10 @@ pop_retr (popserver server, int msgno, FILE *arg)
if
(
pop_retrieve_first
(
server
,
msgno
,
&
line
))
{
char
*
error
=
concat
(
"Error from POP server: "
,
pop_error
,
""
);
strncpy
(
Errmsg
,
error
,
sizeof
(
Errmsg
));
char
*
msg
=
concat
(
"Error from POP server: "
,
pop_error
,
""
);
strncpy
(
Errmsg
,
msg
,
sizeof
(
Errmsg
));
Errmsg
[
sizeof
(
Errmsg
)
-
1
]
=
'\0'
;
free
(
error
);
free
(
msg
);
return
(
NOTOK
);
}
...
...
@@ -850,10 +850,10 @@ pop_retr (popserver server, int msgno, FILE *arg)
if
(
ret
)
{
char
*
error
=
concat
(
"Error from POP server: "
,
pop_error
,
""
);
strncpy
(
Errmsg
,
error
,
sizeof
(
Errmsg
));
char
*
msg
=
concat
(
"Error from POP server: "
,
pop_error
,
""
);
strncpy
(
Errmsg
,
msg
,
sizeof
(
Errmsg
));
Errmsg
[
sizeof
(
Errmsg
)
-
1
]
=
'\0'
;
free
(
error
);
free
(
msg
);
return
(
NOTOK
);
}
...
...
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