From d7a1c33838e142532c49cdda9ea67e18aad92683 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 25 Jul 2015 14:28:59 +0000 Subject: Simplify and make tag_put() more efficient by integrating tag_get() into it and by only handling NUL-terminated strings. Minus 25 lines of code, no functional change. --- tag.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tag.h') diff --git a/tag.h b/tag.h index b6030bb4..34a7eee2 100644 --- a/tag.h +++ b/tag.h @@ -1,4 +1,4 @@ -/* $Id: tag.h,v 1.3 2015/07/25 14:02:06 schwarze Exp $ */ +/* $Id: tag.h,v 1.4 2015/07/25 14:28:59 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze * @@ -18,8 +18,7 @@ __BEGIN_DECLS char *tag_init(void); -size_t tag_get(const char *, size_t, int); -void tag_put(const char *, size_t, int, size_t); +void tag_put(const char *, int, size_t); void tag_write(void); void tag_unlink(void); -- cgit v1.2.3