aboutsummaryrefslogtreecommitdiffstats
path: root/src/yasl.h
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-20 13:36:07 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-20 15:47:56 +0100
commit44333a7d92936dcac9c94fdb4ae4026a3dea0ba8 (patch)
tree9e68b8d54f6455e2a3fa3acee935437e8bb8fa71 /src/yasl.h
parent2c3baba200a74d7ad6f64e9ef37251849139c9a4 (diff)
downloadsds-44333a7d92936dcac9c94fdb4ae4026a3dea0ba8.tar.xz
Rename sdshdr → yastrhdr
Diffstat (limited to 'src/yasl.h')
-rw-r--r--src/yasl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yasl.h b/src/yasl.h
index 8906ee9..9de5df4 100644
--- a/src/yasl.h
+++ b/src/yasl.h
@@ -36,7 +36,7 @@
typedef char *sds;
-struct sdshdr {
+struct yastrhdr {
size_t len;
size_t free;
char buf[];
@@ -109,10 +109,10 @@ int hex_digit_to_int(char c);
* Inline functions
*/
-static inline struct sdshdr *yaslheader(const sds s) {
- /* The sdshdr pointer has a different alignment than the original char
+static inline struct yastrhdr *yaslheader(const sds s) {
+ /* The yastrhdr pointer has a different alignment than the original char
* pointer, so cast it through a void pointer to silence the warning. */
- return (void *)(s - (sizeof (struct sdshdr)));
+ return (void *)(s - (sizeof (struct yastrhdr)));
}
static inline sds yaslauto(const char *s) {