diff options
author | Dan McGee <dan@archlinux.org> | 2007-06-05 23:34:33 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-05 23:34:33 +0200 |
commit | f7912e9dc6be71b177d546da0f8d005e7b4af9e8 (patch) | |
tree | 14f9c7be0757de98d2325b3623eac2a45a438a16 /lib/libalpm/error.c | |
parent | 4906b76c85bc93c4a86dfa8449d58b55ede30425 (diff) | |
download | pacman-f7912e9dc6be71b177d546da0f8d005e7b4af9e8.tar.gz pacman-f7912e9dc6be71b177d546da0f8d005e7b4af9e8.tar.xz |
Const correctness!
Add some 'const' keywords all over the code to make it a bit more strict on
what you can and can't do with data. This is especially important when we
return pointers to the pacman frontend- ideally this would always be
untouchable data.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r-- | lib/libalpm/error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index 0775567c..67d8b1f2 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -30,7 +30,7 @@ #include "alpm.h" /* TODO does this really need a file all on its own? */ -char SYMEXPORT *alpm_strerror(int err) +const char SYMEXPORT *alpm_strerror(int err) { switch(err) { /* System */ |