(intlon >= 0) ? 'E' : 'W',
ABS(intlon) );
- static DownloadMapOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
+ static DownloadFileOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
DownloadResult_t result = a_http_download_get_url ( SRTM_HTTP_SITE, src_fn, p->dest, &options, NULL );
switch ( result ) {
case DOWNLOAD_CONTENT_ERROR:
{
if ( g_file_test(filename, G_FILE_TEST_EXISTS) == TRUE ) {
/* only load if file size is not 0 (not in progress) */
- struct stat sb;
+ GStatBuf sb;
(void)stat ( filename, &sb );
if ( sb.st_size ) {
gchar *duped_path = g_strdup(filename);
if ( g_file_test ( filename, G_FILE_TEST_EXISTS ) ) {
// Get some timestamp information of the file
- struct stat stat_buf;
+ GStatBuf stat_buf;
if ( g_stat ( filename, &stat_buf ) == 0 ) {
gchar time_buf[64];
strftime ( time_buf, sizeof(time_buf), "%c", gmtime((const time_t *)&stat_buf.st_mtime) );