]> git.street.me.uk Git - andy/viking.git/commitdiff
[QA] Fix spelling in a comment and add function comment
authorRob Norris <rw_norris@hotmail.com>
Fri, 10 Jul 2015 16:24:21 +0000 (17:24 +0100)
committerRob Norris <rw_norris@hotmail.com>
Fri, 10 Jul 2015 16:24:21 +0000 (17:24 +0100)
src/download.c

index ef75b02f3b4d4bf9c5d18c246567e26f0977a055..f449a2f59a2e8e0e82c13d1619b6c9ba679f2184 100644 (file)
@@ -165,7 +165,9 @@ static void unlock_file(const char *fn)
        g_mutex_unlock(file_list_mutex);
 }
 
-
+/**
+ * Unzip a file - replacing the file with the unzipped contents of the self
+ */
 static void uncompress_zip ( gchar *name )
 {
        GError *error = NULL;
@@ -186,7 +188,7 @@ static void uncompress_zip ( gchar *name )
                return;
        }
 
-       // This overwrires any previous file contents
+       // This overwrites any previous file contents
        if ( ! g_file_set_contents ( name, unzip_mem, ucsize, &error ) ) {
                g_critical ( "Couldn't write file '%s', because of %s", name, error->message );
                g_error_free ( error );