Fix typo near get_new_basename

And clear op the function a bit.
This commit is contained in:
djcb 2015-11-18 15:51:08 +02:00
parent 539bd9be19
commit 6df9322257
1 changed files with 2 additions and 5 deletions

View File

@ -750,7 +750,6 @@ mu_maildir_get_maildir_from_path (const char* path)
static char*
get_new_basename (void)
{
time_t now;
char hostname[64];
if (gethostname (hostname, sizeof(hostname)) == -1)
@ -758,15 +757,13 @@ get_new_basename (void)
else
hostname[sizeof(hostname)-1] = '\0';
now = time(NULL);
return g_strdup_printf ("%u.%08x%08x.%s",
(guint)now,
(guint)time(NULL),
g_random_int(),
(gint32)g_get_monotonic_time (),
hostname);
}
g
char*
mu_maildir_get_new_path (const char *oldpath, const char *new_mdir,