diff options
author | Antony Kellermann | 2018-05-15 13:09:06 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-05-15 13:09:06 -0400 |
commit | 49506ca5d3a1a3fe98efe92062d2d9fa57cb0b8b (patch) | |
tree | 7c9f379a67fdbc6b9009eaa0450020dd80b29bc9 /string-tick.h | |
parent | c38cbbc27cf50967f17cdc65db198d449dd932c6 (diff) | |
download | aur-49506ca5d3a1a3fe98efe92062d2d9fa57cb0b8b.tar.gz |
Fixed graph zoom indicator issue and small optimizations
Diffstat (limited to 'string-tick.h')
-rw-r--r-- | string-tick.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/string-tick.h b/string-tick.h index b06f82b3f97e..71309f7849e3 100644 --- a/string-tick.h +++ b/string-tick.h @@ -17,7 +17,7 @@ } #define EXIT_MSG(msg) {\ - puts(msg);\ + fprintf(stderr, "%s\n", msg);\ exit(EXIT_FAILURE);\ } @@ -26,12 +26,10 @@ #include <string.h> #include <ctype.h> -struct string { +typedef struct string { char* data; size_t len; -}; - -typedef struct string String; +} String; typedef struct json_object Json; |