summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-07-22 17:37:18 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-07-29 19:44:59 -0700
commit9d043ceb42468af2f18b823e7dd5d026ef24b0b1 (patch)
tree82bdf97cfa974f85c75244d793349a6f526c3280 /includes
parent4fb64a41f4d74e3de672f984fa2617e54ad68d2a (diff)
vendor_match() sentinel attribute
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
-rw-r--r--includes/vendor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/vendor.h b/includes/vendor.h
index f7d02998..50c23c50 100644
--- a/includes/vendor.h
+++ b/includes/vendor.h
@@ -45,7 +45,8 @@ typedef struct {
void vendor_init(void);
void vendor_cleanup(void);
-const Vendor *vendor_match(const gchar *id_str, ...); /* end list of strings with NULL */
+const Vendor *vendor_match(const gchar *id_str, ...) /* end list of strings with NULL */
+ __attribute__((sentinel));
const gchar *vendor_get_name(const gchar *id_str);
const gchar *vendor_get_shortest_name(const gchar *id_str);
const gchar *vendor_get_url(const gchar *id_str);