~ubuntu-branches/ubuntu/precise/evolution/precise

« back to all changes in this revision

Viewing changes to e-util/e-mktemp.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2011-09-08 09:38:57 UTC
  • mfrom: (1.1.84 upstream)
  • Revision ID: package-import@ubuntu.com-20110908093857-6lfl04ke2ns3kx2o
Tags: 3.1.91-0ubuntu1
* New upstream release. (LP: #843769)
* debian/control: bump e-d-s Build-Depends to 3.1.91. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#define TEMP_SCAN (60)
50
50
 
51
51
static gint
52
 
expire_dir_rec (const gchar *base, time_t now)
 
52
expire_dir_rec (const gchar *base,
 
53
                time_t now)
53
54
{
54
55
        GDir *dir;
55
56
        const gchar *d;
157
158
        d(printf("temp dir '%s'\n", path ? path->str : "(null)"));
158
159
 
159
160
        /* fire off an expiry attempt no more often than TEMP_SCAN seconds */
160
 
        if (path && (last+TEMP_SCAN) < now) {
 
161
        if (path && (last + TEMP_SCAN) < now) {
161
162
                last = now;
162
163
                expire_dir_rec (path->str, now);
163
164
        }