summaryrefslogtreecommitdiffstats
path: root/common/sys
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-16 20:42:12 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-16 20:42:12 +0800
commit4b2100223f8e50617bd729f5a4050e9129f1710f (patch)
tree3b29fc57d7ffc2d120028ded90b68b4826408ef0 /common/sys
parentddc440223f72563fb76f7e927a25bd7b70a83f06 (diff)
downloadpttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar
pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.gz
pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.bz2
pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.lz
pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.xz
pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.zst
pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.zip
Add const modifier
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common/sys')
-rw-r--r--common/sys/vector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/sys/vector.c b/common/sys/vector.c
index 70931096..fc99bdc8 100644
--- a/common/sys/vector.c
+++ b/common/sys/vector.c
@@ -47,7 +47,7 @@ Vector_clear(struct Vector *self, const int size)
}
int
-Vector_length(struct Vector *self)
+Vector_length(const struct Vector *self)
{
return self->length;
}
@@ -93,7 +93,7 @@ Vector_add(struct Vector *self, const char *name)
}
const char*
-Vector_get(struct Vector *self, const int idx)
+Vector_get(const struct Vector *self, const int idx)
{
assert(0 <= idx && idx < self->length);
return self->base + self->size * idx;
@@ -138,7 +138,7 @@ Vector_match(const struct Vector *src, struct Vector *dst, const int key, const
}
void
-Vector_sublist(struct Vector *src, struct Vector *dst, const char *tag)
+Vector_sublist(const struct Vector *src, struct Vector *dst, const char *tag)
{
int i;
int len;