Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
7dc6bca6
...
7dc6bca632a27e932c72f419fed77a43cb677920
authored
2001-10-25 01:44:01 +0000
by
Alain Magloire
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug.
1 parent
89c7c751
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
mailbox2/mbox/mbox_cb.c
mailbox2/mbox/mbox_scan.c
mailbox2/mbox/mbox_cb.c
View file @
7dc6bca
...
...
@@ -25,7 +25,7 @@
int
mbox_set_progress_cb
(
mbox_t
mbox
,
int
(
*
cb
)
__P
((
int
,
void
*
)),
void
*
arg
)
{
if
(
mbox
)
if
(
mbox
==
NULL
)
return
MU_ERROR_INVALID_PARAMETER
;
mbox
->
progress
.
cb
=
cb
;
mbox
->
progress
.
arg
=
arg
;
...
...
@@ -35,7 +35,7 @@ mbox_set_progress_cb (mbox_t mbox, int (*cb) __P ((int, void *)), void *arg)
int
mbox_set_newmsg_cb
(
mbox_t
mbox
,
int
(
*
cb
)
__P
((
int
,
void
*
)),
void
*
arg
)
{
if
(
mbox
)
if
(
mbox
==
NULL
)
return
MU_ERROR_INVALID_PARAMETER
;
mbox
->
newmsg
.
cb
=
cb
;
mbox
->
newmsg
.
arg
=
arg
;
...
...
@@ -45,7 +45,7 @@ mbox_set_newmsg_cb (mbox_t mbox, int (*cb) __P ((int, void *)), void *arg)
int
mbox_set_error_cb
(
mbox_t
mbox
,
int
(
*
cb
)
__P
((
int
,
void
*
)),
void
*
arg
)
{
if
(
mbox
)
if
(
mbox
==
NULL
)
return
MU_ERROR_INVALID_PARAMETER
;
mbox
->
error
.
cb
=
cb
;
mbox
->
error
.
arg
=
arg
;
...
...
@@ -55,7 +55,7 @@ mbox_set_error_cb (mbox_t mbox, int (*cb) __P ((int, void *)), void *arg)
int
mbox_newmsg_cb
(
mbox_t
mbox
,
int
info
)
{
if
(
mbox
)
if
(
mbox
==
NULL
)
return
MU_ERROR_INVALID_PARAMETER
;
if
(
mbox
->
newmsg
.
cb
)
return
mbox
->
newmsg
.
cb
(
info
,
mbox
->
newmsg
.
arg
);
...
...
@@ -65,7 +65,7 @@ mbox_newmsg_cb (mbox_t mbox, int info)
int
mbox_progress_cb
(
mbox_t
mbox
,
int
info
)
{
if
(
mbox
)
if
(
mbox
==
NULL
)
return
MU_ERROR_INVALID_PARAMETER
;
if
(
mbox
->
progress
.
cb
)
return
mbox
->
progress
.
cb
(
info
,
mbox
->
progress
.
arg
);
...
...
@@ -75,7 +75,7 @@ mbox_progress_cb (mbox_t mbox, int info)
int
mbox_error_cb
(
mbox_t
mbox
,
int
info
)
{
if
(
mbox
)
if
(
mbox
==
NULL
)
return
MU_ERROR_INVALID_PARAMETER
;
if
(
mbox
->
error
.
cb
)
return
mbox
->
error
.
cb
(
info
,
mbox
->
error
.
arg
);
...
...
mailbox2/mbox/mbox_scan.c
View file @
7dc6bca
...
...
@@ -176,6 +176,8 @@ mbox_scan0 (mbox_t mbox, unsigned int msgno, unsigned int *pcount,
else
status
=
MU_ERROR_IO
;
}
else
status
=
MU_ERROR_IO
;
/* Move along, move along nothing to see. */
if
(
!
mbox_has_newmail
(
mbox
)
&&
mbox
->
size
==
file_size
)
...
...
Please
register
or
sign in
to post a comment