From bcb92f480fb538c50a0e0b5b3c1ac6d49411a7e5 Mon Sep 17 00:00:00 2001 From: Cristian Rodríguez Date: Tue, 30 Apr 2013 22:07:33 -0400 Subject: Annotate some functions as _const_ hexchar,unhexchar,octchar,unoctchar,decchar,undecchar are all const functions. --- src/shared/util.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf