aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-mktemp.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /e-util/e-mktemp.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.bz2
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.lz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.xz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'e-util/e-mktemp.c')
-rw-r--r--e-util/e-mktemp.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/e-util/e-mktemp.c b/e-util/e-mktemp.c
index 682563907c..0044b2e085 100644
--- a/e-util/e-mktemp.c
+++ b/e-util/e-mktemp.c
@@ -51,14 +51,14 @@
#define TEMP_SCAN (60)
static int
-expire_dir_rec(const char *base, time_t now)
+expire_dir_rec(const gchar *base, time_t now)
{
GDir *dir;
- const char *d;
+ const gchar *d;
GString *path;
size_t len;
struct stat st;
- int count = 0;
+ gint count = 0;
d(printf("expire dir '%s'\n", base));
@@ -109,7 +109,7 @@ get_dir (gboolean make)
static time_t last = 0;
#ifdef TEMP_HOME
- char *tmpdir = NULL;
+ gchar *tmpdir = NULL;
tmpdir = g_build_filename(e_get_user_data_dir (),
"cache", "tmp", NULL);
path = g_string_new(tmpdir);
@@ -122,7 +122,7 @@ get_dir (gboolean make)
path = g_string_new("/tmp/evolution-");
g_string_append_printf (path, "%d", (int) getuid ());
if (make) {
- int ret;
+ gint ret;
/* shoot now, ask questions later */
ret = g_mkdir (path->str, S_IRWXU);
@@ -163,11 +163,11 @@ get_dir (gboolean make)
return path;
}
-char *
-e_mktemp (const char *template)
+gchar *
+e_mktemp (const gchar *template)
{
GString *path;
- char *ret;
+ gchar *ret;
path = get_dir (TRUE);
if (!path)
@@ -186,11 +186,11 @@ e_mktemp (const char *template)
}
-int
-e_mkstemp (const char *template)
+gint
+e_mkstemp (const gchar *template)
{
GString *path;
- int fd;
+ gint fd;
path = get_dir (TRUE);
if (!path)
@@ -209,11 +209,11 @@ e_mkstemp (const char *template)
}
-char *
-e_mkdtemp (const char *template)
+gchar *
+e_mkdtemp (const gchar *template)
{
GString *path;
- char *tmpdir;
+ gchar *tmpdir;
path = get_dir (TRUE);
if (!path)