[geany/geany] bbc0fa: Don't depend on an implementation detail of S_ISREG and S_ISDIR

Colomban Wendling git-noreply at xxxxx
Mon Nov 11 17:52:45 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 11 Nov 2013 17:52:45 UTC
Commit:      bbc0fa3b69eb4f939a70b9ff27411e146a59400d
             https://github.com/geany/geany/commit/bbc0fa3b69eb4f939a70b9ff27411e146a59400d

Log Message:
-----------
Don't depend on an implementation detail of S_ISREG and S_ISDIR


Modified Paths:
--------------
    tagmanager/src/tm_file_entry.c

Modified: tagmanager/src/tm_file_entry.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -61,13 +61,13 @@ static TMFileType tm_file_entry_type(const char *path)
 	if (0 != g_lstat(path, &s))
 		return tm_file_unknown_t;
 #endif
-	if S_ISDIR(s.st_mode)
+	if (S_ISDIR(s.st_mode))
 		return tm_file_dir_t;
 #ifndef G_OS_WIN32
 	else if (S_ISLNK(s.st_mode))
 		return tm_file_link_t;
 #endif
-	else if S_ISREG(s.st_mode)
+	else if (S_ISREG(s.st_mode))
 		return tm_file_regular_t;
 	else
 		return tm_file_unknown_t;



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list