diff src/ui_fileops.c @ 1000:4fe8f9656107

For the sake of consistency, use glib basic types everywhere.
author zas_
date Tue, 26 Aug 2008 22:22:51 +0000
parents d2701a5864c5
children 1646720364cf
line wrap: on
line diff
--- a/src/ui_fileops.c	Tue Aug 26 21:19:33 2008 +0000
+++ b/src/ui_fileops.c	Tue Aug 26 22:22:51 2008 +0000
@@ -275,7 +275,7 @@
 	return ret;
 }
 
-gint access_file(const gchar *s, int mode)
+gint access_file(const gchar *s, gint mode)
 {
 	gchar *sl;
 	gint ret;
@@ -322,7 +322,7 @@
 	return ret;
 }
 
-gint mkdir_utf8(const gchar *s, int mode)
+gint mkdir_utf8(const gchar *s, gint mode)
 {
 	gchar *sl;
 	gint ret;
@@ -428,9 +428,9 @@
 
 	if (!fi || !fo) return FALSE;
 
-	while ((b = fread(buf, sizeof(char), sizeof(buf), fi)) && b != 0)
+	while ((b = fread(buf, sizeof(gchar), sizeof(buf), fi)) && b != 0)
 		{
-		if (fwrite(buf, sizeof(char), b, fo) != b)
+		if (fwrite(buf, sizeof(gchar), b, fo) != b)
 			{
 			fclose(fi);
 			fclose(fo);