diff options
Diffstat (limited to 'imap/src/osdep/unix/news.c')
-rw-r--r-- | imap/src/osdep/unix/news.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/imap/src/osdep/unix/news.c b/imap/src/osdep/unix/news.c index d80ef003..beda8a66 100644 --- a/imap/src/osdep/unix/news.c +++ b/imap/src/osdep/unix/news.c @@ -76,8 +76,8 @@ long news_create (MAILSTREAM *stream,char *mailbox); long news_delete (MAILSTREAM *stream,char *mailbox); long news_rename (MAILSTREAM *stream,char *old,char *newname); MAILSTREAM *news_open (MAILSTREAM *stream); -int news_select (struct direct *name); -int news_numsort (const void *d1,const void *d2); +int news_select (const struct direct *name); +int news_numsort (const struct direct **d1,const struct direct **d2); void news_close (MAILSTREAM *stream,long options); void news_fast (MAILSTREAM *stream,char *sequence,long flags); void news_flags (MAILSTREAM *stream,char *sequence,long flags); @@ -403,10 +403,10 @@ MAILSTREAM *news_open (MAILSTREAM *stream) * Returns: T to use file name, NIL to skip it */ -int news_select (struct direct *name) +int news_select (const struct direct *name) { char c; - char *s = name->d_name; + char *s = (char *) name->d_name; while ((c = *s++) != '\0') if (!isdigit (c)) return NIL; return T; } @@ -418,7 +418,7 @@ int news_select (struct direct *name) * Returns: negative if d1 < d2, 0 if d1 == d2, positive if d1 > d2 */ -int news_numsort (const void *d1,const void *d2) +int news_numsort (const struct direct **d1,const struct direct **d2) { return atoi ((*(struct direct **) d1)->d_name) - atoi ((*(struct direct **) d2)->d_name); |