summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-20 12:42:11 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-20 12:42:11 +0800
commit95ddd189cb243f4c0b99fbaf3178abf3ac5564e8 (patch)
treec88bceafa5b0698d345d96589eb5a30595d93afb /include
parent9a50838fdd9e9e4c80a82e985eba2a80ceb58e81 (diff)
downloadpttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.tar
pttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.tar.gz
pttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.tar.bz2
pttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.tar.lz
pttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.tar.xz
pttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.tar.zst
pttbbs-95ddd189cb243f4c0b99fbaf3178abf3ac5564e8.zip
fix compile error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2668 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/proto.h b/include/proto.h
index e16da190..0671dd96 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -486,8 +486,8 @@ int delete_files(const char* dirname, int (*filecheck)(), int record);
#ifndef _BBS_UTIL_C_
void safe_delete_range(const char *fpath, int id1, int id2);
#endif
-int safe_article_delete(int ent, fileheader_t *fhdr, char *direct);
-int safe_article_delete_range(char *direct, int from, int to);
+int safe_article_delete(int ent, const fileheader_t *fhdr, const char *direct);
+int safe_article_delete_range(const char *direct, int from, int to);
#endif
int delete_file(const char *dirname, int size, int ent, int (*filecheck)());
int delete_range(const char *fpath, int id1, int id2);
@@ -599,18 +599,18 @@ int qsort_intcompar(const void *a, const void *b);
void FREE(void *ptr);
#endif
#ifdef OUTTACACHE
-int tobind(char *iface_ip, int port);
-int toconnect(char *host, int port);
+int tobind(const char *iface_ip, int port);
+int toconnect(const char *host, int port);
int toread(int fd, void *buf, int len);
-int towrite(int fd, void *buf, int len);
+int towrite(int fd, const void *buf, int len);
#endif
#ifdef PLAY_ANGEL
void pressanykey_or_callangel(void);
#endif
#ifdef TIMET64
- struct tm *localtime4(time4_t *);
+ struct tm *localtime4(const time4_t *);
time4_t time4(time4_t *);
- char *ctime4(time4_t *);
+ char *ctime4(const time4_t *);
#else
#define localtime4(a) localtime(a)
#define time4(a) time(a)