projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace deprecated readdir_r() with readdir()
[citadel.git]
/
citadel
/
modules
/
image
/
serv_image.c
diff --git
a/citadel/modules/image/serv_image.c
b/citadel/modules/image/serv_image.c
index 367814e9f699177b060f80d475a21af4375d3c8d..a7960b10097ebb0697e8c350baa62d1dbb573856 100644
(file)
--- a/
citadel/modules/image/serv_image.c
+++ b/
citadel/modules/image/serv_image.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 1987-201
6
by the citadel.org team
+ * Copyright (c) 1987-201
7
by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-297,8
+297,7
@@
void import_old_userpic_files(void)
free(d);
return;
}
free(d);
return;
}
- while ((readdir_r(filedir, d, &filedir_entry) == 0) &&
- (filedir_entry != NULL))
+ while ( (filedir_entry = readdir(filedir)) , (filedir_entry != NULL))
{
#ifdef _DIRENT_HAVE_D_NAMLEN
d_namelen = filedir_entry->d_namlen;
{
#ifdef _DIRENT_HAVE_D_NAMLEN
d_namelen = filedir_entry->d_namlen;