diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-20 13:36:07 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-20 15:47:56 +0100 |
commit | 44333a7d92936dcac9c94fdb4ae4026a3dea0ba8 (patch) | |
tree | 9e68b8d54f6455e2a3fa3acee935437e8bb8fa71 /src/yasl.h | |
parent | 2c3baba200a74d7ad6f64e9ef37251849139c9a4 (diff) | |
download | sds-44333a7d92936dcac9c94fdb4ae4026a3dea0ba8.tar.xz |
Rename sdshdr → yastrhdr
Diffstat (limited to 'src/yasl.h')
-rw-r--r-- | src/yasl.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |