mirror of
https://github.com/troglobit/libite.git
synced 2026-11-07 16:01:01 +00:00
Fix issue #2: GCC6 -Wmisleading-indentation causing FTBFS in pimd
- Add function comment - Fix misleading indentaion - Fix coding sttle Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
5fc248522c
commit
604b503b84
1 file changed
+8
-4
@@ -130,12 +130,16 @@ int tree(char *path, int show_perms);
|
|||||||
#define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))
|
#define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Does directory end with a slash? */
|
||||||
static inline int fisslashdir(char *dir)
|
static inline int fisslashdir(char *dir)
|
||||||
{
|
{
|
||||||
if (!dir) return 0;
|
if (!dir)
|
||||||
if (strlen (dir) > 0) return dir[strlen (dir) - 1] == '/';
|
return 0;
|
||||||
return 0;
|
|
||||||
|
if (strlen(dir) > 0)
|
||||||
|
return dir[strlen(dir) - 1] == '/';
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert string to natural number (0-2147483647), returns -1 on error. */
|
/* Convert string to natural number (0-2147483647), returns -1 on error. */
|
||||||
|
|||||||
Reference in new issue
Block a user