summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2013-04-30 22:07:33 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-01 10:15:25 -0400
commitbcb92f480fb538c50a0e0b5b3c1ac6d49411a7e5 (patch)
treece186f1fdd8cb49093c91793e34d4aabae9d33bf /src/shared
parent92dd3633b4257ccd82da662a64c24cbc73668c32 (diff)
Annotate some functions as _const_
hexchar,unhexchar,octchar,unoctchar,decchar,undecchar are all const functions.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index eee66ccf64..eb82ff4197 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -211,12 +211,12 @@ int get_process_exe(pid_t pid, char **name);
int get_process_uid(pid_t pid, uid_t *uid);
int get_process_gid(pid_t pid, gid_t *gid);
-char hexchar(int x);
-int unhexchar(char c);
-char octchar(int x);
-int unoctchar(char c);
-char decchar(int x);
-int undecchar(char c);
+char hexchar(int x) _const_;
+int unhexchar(char c) _const_;
+char octchar(int x) _const_;
+int unoctchar(char c) _const_;
+char decchar(int x) _const_;
+int undecchar(char c) _const_;
char *cescape(const char *s);
char *cunescape(const char *s);