* mu-maildir.[ch]: cosmetics
This commit is contained in:
@ -219,8 +219,7 @@ process_file (const char* fullpath, MuMaildirWalkMsgCallback cb, void *data)
|
|||||||
* use the ctime, so any status change will be visible (perms,
|
* use the ctime, so any status change will be visible (perms,
|
||||||
* filename etc.)
|
* filename etc.)
|
||||||
*/
|
*/
|
||||||
result = (cb)(fullpath,statbuf.st_ctime,data);
|
result = (cb)(fullpath, statbuf.st_ctime, data);
|
||||||
|
|
||||||
if (G_LIKELY(result == MU_OK || result == MU_STOP))
|
if (G_LIKELY(result == MU_OK || result == MU_STOP))
|
||||||
return result;
|
return result;
|
||||||
else {
|
else {
|
||||||
@ -303,7 +302,7 @@ _ignore_dir_entry (struct dirent *entry)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* ignore .notmuch, .nnmaildir */
|
/* ignore .notmuch, .nnmaildir */
|
||||||
if ((name[1] == 'n') &&/* optimization */
|
if ((name[1] == 'n') && /* optimization */
|
||||||
(strcmp (name, ".notmuch") == 0 ||
|
(strcmp (name, ".notmuch") == 0 ||
|
||||||
strcmp (name, ".nnmaildir") == 0))
|
strcmp (name, ".nnmaildir") == 0))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -326,8 +325,6 @@ process_dir_entry (const char* path, struct dirent *entry,
|
|||||||
fullpath = g_newa (char, strlen(path) + strlen(entry->d_name) + 1);
|
fullpath = g_newa (char, strlen(path) + strlen(entry->d_name) + 1);
|
||||||
sprintf (fullpath, "%s%c%s", path, G_DIR_SEPARATOR,
|
sprintf (fullpath, "%s%c%s", path, G_DIR_SEPARATOR,
|
||||||
entry->d_name);
|
entry->d_name);
|
||||||
|
|
||||||
g_debug ("looking at: %s", fullpath);
|
|
||||||
|
|
||||||
switch (entry->d_type) {
|
switch (entry->d_type) {
|
||||||
case DT_REG:
|
case DT_REG:
|
||||||
|
|||||||
@ -96,8 +96,6 @@ typedef MuResult (*MuMaildirWalkDirCallback)
|
|||||||
*/
|
*/
|
||||||
MuResult mu_maildir_walk (const char *path, MuMaildirWalkMsgCallback cb_msg,
|
MuResult mu_maildir_walk (const char *path, MuMaildirWalkMsgCallback cb_msg,
|
||||||
MuMaildirWalkDirCallback cb_dir, void *data);
|
MuMaildirWalkDirCallback cb_dir, void *data);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* recursively delete all the symbolic links in a directory tree
|
* recursively delete all the symbolic links in a directory tree
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user