diff --git a/src/dat/nbt.h b/src/dat/nbt.h index 4dfeacb..967c3eb 100644 --- a/src/dat/nbt.h +++ b/src/dat/nbt.h @@ -52,7 +52,7 @@ struct nbt_procdat { /* searches for the end of a named tag without processing data, the final pointer is returned. * `NULL` is returned upon failure, the otherwise returned pointer is not guaranteed to be valid. */ -PURE NONNULL((1)) const u8 *nbt_nexttag(const u8 *restrict buf); +const u8 *nbt_nexttag(const u8 *restrict buf) NONNULL((1)) PURE; /* initialises a data structure used whilst processing the tags */ -PURE NONNULL((1)) struct nbt_procdat nbt_initproc(struct nbt_path const *restrict pats, uint npats); +struct nbt_procdat nbt_initproc(struct nbt_path const *restrict pats, uint npats) NONNULL((1)) PURE; diff --git a/src/util/conf.h b/src/util/conf.h index 8b2d51f..e7b49d3 100644 --- a/src/util/conf.h +++ b/src/util/conf.h @@ -67,4 +67,4 @@ int conf_procval(struct conf_entry const *opts, const char *restrict val); * - windows: reads %APPDATA%, if empty %USERPROFILE%\AppData\Roaming is used, if both are empty NULL is returned. * - osx: reads $HOME, uses $HOME/Library/Application Support, if $HOME is empty NULL is returned. * !! A malloc'd null-terminated string is returned !! */ -MALLOC NONNULL((1)) char *conf_getpat(const char *); +char *conf_getpat(const char *) MALLOC NONNULL((1));