Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:mail
imap
imap-2007f-scandir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File imap-2007f-scandir.patch of Package imap
Index: b/src/osdep/unix/news.c =================================================================== --- a/src/osdep/unix/news.c +++ b/src/osdep/unix/news.c @@ -76,8 +76,8 @@ long news_create (MAILSTREAM *stream,cha 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); @@ -402,7 +402,7 @@ MAILSTREAM *news_open (MAILSTREAM *strea * 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; @@ -417,10 +417,10 @@ int news_select (struct direct *name) * Returns: negative if d1 < d2, 0 if d1 == d2, postive 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); + return atoi ((*d1)->d_name) - + atoi ((*d2)->d_name); } Index: b/src/osdep/unix/mh.c =================================================================== --- a/src/osdep/unix/mh.c +++ b/src/osdep/unix/mh.c @@ -104,8 +104,8 @@ long mh_copy (MAILSTREAM *stream,char *s long options); long mh_append (MAILSTREAM *stream,char *mailbox,append_t af,void *data); -int mh_select (struct direct *name); -int mh_numsort (const void *d1,const void *d2); +int mh_select (const struct direct *name); +int mh_numsort (const struct direct **d1,const struct direct **d2); char *mh_file (char *dst,char *name); long mh_canonicalize (char *pattern,char *ref,char *pat); void mh_setdate (char *file,MESSAGECACHE *elt); @@ -1195,7 +1195,7 @@ long mh_append (MAILSTREAM *stream,char * Returns: T to use file name, NIL to skip it */ -int mh_select (struct direct *name) +int mh_select (const struct direct *name) { char c; char *s = name->d_name; @@ -1210,10 +1210,10 @@ int mh_select (struct direct *name) * Returns: negative if d1 < d2, 0 if d1 == d2, postive if d1 > d2 */ -int mh_numsort (const void *d1,const void *d2) +int mh_numsort (const struct direct **d1,const struct direct **d2) { - return atoi ((*(struct direct **) d1)->d_name) - - atoi ((*(struct direct **) d2)->d_name); + return atoi ((*d1)->d_name) - + atoi ((*d2)->d_name); } Index: b/src/osdep/unix/mx.c =================================================================== --- a/src/osdep/unix/mx.c +++ b/src/osdep/unix/mx.c @@ -99,8 +99,8 @@ long mx_append (MAILSTREAM *stream,char long mx_append_msg (MAILSTREAM *stream,char *flags,MESSAGECACHE *elt, STRING *st,SEARCHSET *set); -int mx_select (struct direct *name); -int mx_numsort (const void *d1,const void *d2); +int mx_select (const struct direct *name); +int mx_numsort (const struct direct **d1,const struct direct **d2); char *mx_file (char *dst,char *name); long mx_lockindex (MAILSTREAM *stream); void mx_unlockindex (MAILSTREAM *stream); @@ -1111,7 +1111,7 @@ long mx_append_msg (MAILSTREAM *stream,c * Returns: T to use file name, NIL to skip it */ -int mx_select (struct direct *name) +int mx_select (const struct direct *name) { char c; char *s = name->d_name; @@ -1126,10 +1126,10 @@ int mx_select (struct direct *name) * Returns: negative if d1 < d2, 0 if d1 == d2, postive if d1 > d2 */ -int mx_numsort (const void *d1,const void *d2) +int mx_numsort (const struct direct **d1,const struct direct **d2) { - return atoi ((*(struct direct **) d1)->d_name) - - atoi ((*(struct direct **) d2)->d_name); + return atoi ((*d1)->d_name) - + atoi ((*d2)->d_name); } Index: b/src/osdep/unix/mix.c =================================================================== --- a/src/osdep/unix/mix.c +++ b/src/osdep/unix/mix.c @@ -124,7 +124,7 @@ long mix_unsubscribe (MAILSTREAM *stream long mix_create (MAILSTREAM *stream,char *mailbox); long mix_delete (MAILSTREAM *stream,char *mailbox); long mix_rename (MAILSTREAM *stream,char *old,char *newname); -int mix_rselect (struct direct *name); +int mix_rselect (const struct direct *name); MAILSTREAM *mix_open (MAILSTREAM *stream); void mix_close (MAILSTREAM *stream,long options); void mix_abort (MAILSTREAM *stream); @@ -139,8 +139,8 @@ THREADNODE *mix_thread (MAILSTREAM *stre long mix_ping (MAILSTREAM *stream); void mix_check (MAILSTREAM *stream); long mix_expunge (MAILSTREAM *stream,char *sequence,long options); -int mix_select (struct direct *name); -int mix_msgfsort (const void *d1,const void *d2); +int mix_select (const struct direct *name); +int mix_msgfsort (const struct direct **d1,const struct direct **d2); long mix_addset (SEARCHSET **set,unsigned long start,unsigned long size); long mix_burp (MAILSTREAM *stream,MIXBURP *burp,unsigned long *reclaimed); long mix_burp_check (SEARCHSET *set,size_t size,char *file); @@ -586,7 +586,7 @@ long mix_rename (MAILSTREAM *stream,char * Returns: T if mix file name, NIL otherwise */ -int mix_rselect (struct direct *name) +int mix_rselect (const struct direct *name) { return mix_dirfmttest (name->d_name); } @@ -1145,7 +1145,7 @@ long mix_expunge (MAILSTREAM *stream,cha * ".mix" with no suffix was used by experimental versions */ -int mix_select (struct direct *name) +int mix_select (const struct direct *name) { char c,*s; /* make sure name has prefix */ @@ -1164,10 +1164,10 @@ int mix_select (struct direct *name) * Returns: -1 if d1 < d2, 0 if d1 == d2, 1 d1 > d2 */ -int mix_msgfsort (const void *d1,const void *d2) +int mix_msgfsort (const struct direct **d1,const struct direct **d2) { - char *n1 = (*(struct direct **) d1)->d_name + sizeof (MIXNAME) - 1; - char *n2 = (*(struct direct **) d2)->d_name + sizeof (MIXNAME) - 1; + char *n1 = (*d1)->d_name + sizeof (MIXNAME) - 1; + char *n2 = (*d2)->d_name + sizeof (MIXNAME) - 1; return compare_ulong (*n1 ? strtoul (n1,NIL,16) : 0, *n2 ? strtoul (n2,NIL,16) : 0); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor