forked from enlightenment/efl
- libgen.h is required on FreeBSD for basename(), and will provide
POSIX basename() for those of you using glibc. - Silence some compiler warnings. SVN revision: 34926
This commit is contained in:
parent
d16456e061
commit
387d29e262
|
@ -26,6 +26,7 @@
|
|||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <libgen.h>
|
||||
#ifdef HAVE_NETDB_H
|
||||
# include <netdb.h>
|
||||
#endif
|
||||
|
|
|
@ -545,11 +545,15 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, char *filename, char *user, cha
|
|||
}
|
||||
#else
|
||||
return 0;
|
||||
/*
|
||||
* DEAD CODE?
|
||||
*
|
||||
url_con = NULL;
|
||||
filename = NULL;
|
||||
user = NULL;
|
||||
pass = NULL;
|
||||
upload_dir = NULL;
|
||||
*/
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -750,11 +754,11 @@ static size_t
|
|||
_ecore_con_url_read_cb(void *ptr, size_t size, size_t nitems, void *stream)
|
||||
{
|
||||
size_t retcode = fread(ptr, size, nitems, stream);
|
||||
if (ferror(stream)) {
|
||||
if (ferror((FILE*)stream)) {
|
||||
fclose(stream);
|
||||
return CURL_READFUNC_ABORT;
|
||||
} else if ((retcode == 0) || (retcode < nitems)) {
|
||||
fclose(stream);
|
||||
fclose((FILE*)stream);
|
||||
return 0;
|
||||
}
|
||||
fprintf(stderr, "*** We read %d bytes from file\n", retcode);
|
||||
|
|
Loading…
Reference in New Issue