]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikdemlayer.c
Reduce compiler warnings on Windows.
[andy/viking.git] / src / vikdemlayer.c
index a894e0ab31127be3c08f3e934bf068ad06b03f36..d229ad15bcde889e6dd9610d65e470b6102ee266 100644 (file)
@@ -957,7 +957,7 @@ static void srtm_dem_download_thread ( DEMDownloadParams *p, gpointer threaddata
                (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:
@@ -1145,7 +1145,7 @@ static gboolean dem_layer_add_file ( VikDEMLayer *vdl, const gchar *filename )
 {
   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);
@@ -1233,7 +1233,7 @@ static void dem_layer_file_info ( GtkWidget *widget, struct LatLon *ll )
 
   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) );