aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_parse_contact.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-03 10:35:08 +0200
committerMattias Andrée <maandree@kth.se>2021-04-03 10:35:08 +0200
commit175bc40deeefb3a385012d3f9a3874e8b3c46d97 (patch)
tree7203cf13e791445509720eb6aa06e0f0766c920a /libcontacts_parse_contact.c
parentFix bugs and warnings (diff)
downloadlibcontacts-175bc40deeefb3a385012d3f9a3874e8b3c46d97.tar.gz
libcontacts-175bc40deeefb3a385012d3f9a3874e8b3c46d97.tar.bz2
libcontacts-175bc40deeefb3a385012d3f9a3874e8b3c46d97.tar.xz
Add pure attributes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_parse_contact.c')
-rw-r--r--libcontacts_parse_contact.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcontacts_parse_contact.c b/libcontacts_parse_contact.c
index f8de012..79dc579 100644
--- a/libcontacts_parse_contact.c
+++ b/libcontacts_parse_contact.c
@@ -2,6 +2,7 @@
#include "common.h"
+ATTRIBUTE_PURE
static time_t
gettime(const char *data)
{
@@ -18,6 +19,7 @@ gettime(const char *data)
return ret;
}
+ATTRIBUTE_PURE
static unsigned int
getposuint(const char *data)
{
@@ -34,6 +36,7 @@ getposuint(const char *data)
return ret;
}
+ATTRIBUTE_PURE
static unsigned char
getposuchar(const char *data)
{
@@ -50,6 +53,7 @@ getposuchar(const char *data)
return ret;
}
+ATTRIBUTE_PURE
static char *
getstr(char *data)
{
@@ -57,6 +61,7 @@ getstr(char *data)
return &strchr(data, ' ')[1];
}
+ATTRIBUTE_PURE
static char *
unindent(char *data)
{