[Libreoffice-commits] core.git: soltools/mkdepend
Pedro Giffuni
pfg at apache.org
Sun Apr 10 19:41:16 UTC 2016
soltools/mkdepend/main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 429a15cc292a92c2f00be6febde7da66ed792b70
Author: Pedro Giffuni <pfg at apache.org>
Date: Sun Apr 10 02:27:05 2016 +0000
Drop redundant parenthesis.
Found with coccinelle: http://coccinelle.lip6.fr/
Currently only applied to C code.
(cherry picked from commit aaf15142bcbc44f0e06a3357d2b21ecf9c673d21)
Change-Id: I7d43b024752ebd47e84e2e51028f8fd132410800
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c
index fad3737..c156c19 100644
--- a/soltools/mkdepend/main.c
+++ b/soltools/mkdepend/main.c
@@ -634,9 +634,9 @@ char *base_name(char *file)
if ( *p == '/' || *p == '\\') {
file = p + 1;
break;
- };
+ }
p--;
- };
+ }
return file;
}
@@ -711,7 +711,7 @@ void convert_slashes(char *path)
for (ptr = (char*)path; *ptr; ++ptr)
if (*ptr == '\\')
*ptr = '/';
- };
+ }
#else
(void)path;
#endif
@@ -730,7 +730,7 @@ char* append_slash(char *path)
strcat(new_string, "\\");
else
strcat(new_string, "/");
- };
+ }
return new_string;
}
More information about the Libreoffice-commits
mailing list