summaryrefslogtreecommitdiff
path: root/imap/src/osdep/unix/news.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-11-21 22:53:38 -0700
committerEduardo Chappa <chappa@washington.edu>2021-11-21 22:53:38 -0700
commit2adddd4261eeefe058b529ed0b9af6b2d497aa67 (patch)
tree8ccd933b22c28c4ac2c24520127cf50dbcf54f10 /imap/src/osdep/unix/news.c
parentd68d725ea37a3538f657fc2a8d211fad36af72d3 (diff)
downloadalpine-2adddd4261eeefe058b529ed0b9af6b2d497aa67.tar.xz
* Fix some compilation warnings. It is possible these fixes break
compilation in other compilers as there might be differences in the prototypes of the scandir function. This might need to be solved by making sensible changes to the configure script, so more work might be needed to complete this project.
Diffstat (limited to 'imap/src/osdep/unix/news.c')
-rw-r--r--imap/src/osdep/unix/news.c10
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);