Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add const qualifiers for owl_pair *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
commit 25fb825f0ab7aaffd87d84f2f8c7d7a365b52b70 1 parent a352029
@andersk andersk authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 pair.c
  2. +1 −1  perlconfig.c
View
4 pair.c
@@ -13,10 +13,10 @@ void owl_pair_set_value(owl_pair *p, char *value) {
p->value=value;
}
-const char *owl_pair_get_key(owl_pair *p) {
+const char *owl_pair_get_key(const owl_pair *p) {
return(p->key);
}
-char *owl_pair_get_value(owl_pair *p) {
+char *owl_pair_get_value(const owl_pair *p) {
return(p->value);
}
View
2  perlconfig.c
@@ -28,7 +28,7 @@ SV *owl_perlconfig_message2hashref(owl_message *m)
const char *type;
char *ptr, *utype, *blessas;
int i, j;
- owl_pair *pair;
+ const owl_pair *pair;
owl_filter *wrap;
if (!m) return &PL_sv_undef;
Please sign in to comment.
Something went wrong with that request. Please try again.