[tz] [PATCH] Allow complication with tcc
Arthur Williams
taaparthur at disroot.org
Thu Dec 30 21:09:10 UTC 2021
In zic.c, some multi-line strings were surrounded in parenthesis which
prevented tcc from parsing it. Maybe this is a complier bug, but don't
think we gain anything by having the paren so just removed them.
---
zic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zic.c b/zic.c
index 1ab636be..867c8d18 100644
--- a/zic.c
+++ b/zic.c
@@ -990,9 +990,9 @@ random_dirent(char const **name, char **namealloc)
char const *src = *name;
char *dst = *namealloc;
static char const prefix[] = ".zic";
- static char const alphabet[] = ("abcdefghijklmnopqrstuvwxyz"
+ static char const alphabet[] = "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "0123456789");
+ "0123456789";
enum { prefixlen = sizeof prefix - 1, alphabetlen = sizeof alphabet - 1 };
int suffixlen = 6;
char const *lastslash = strrchr(src, '/');
--
2.34.1
More information about the tz
mailing list