diff options
-rw-r--r-- | include/proto.h | 2 | ||||
-rw-r--r-- | include/pttstruct.h | 2 | ||||
-rw-r--r-- | mbbsd/announce.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/proto.h b/include/proto.h index 46784a17..2ed3890f 100644 --- a/include/proto.h +++ b/include/proto.h @@ -40,7 +40,7 @@ int make_symbolic_link_interactively(int gid); void merge_dir(const char *dir1, const char *dir2, int isoutter); /* announce */ -int a_menu(const char *maintitle, char *path, int lastlevel, char *trans_buffer); +int a_menu(const char *maintitle, const char *path, int lastlevel, char *trans_buffer); void a_copyitem(const char* fpath, const char* title, const char* owner, int mode); int Announce(void); void gem(char* maintitle, item_t* path, int update); diff --git a/include/pttstruct.h b/include/pttstruct.h index 3d794166..4e722d70 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -423,7 +423,7 @@ typedef struct { typedef struct { fileheader_t *header; char mtitle[STRLEN]; - char *path; + const char *path; int num, page, now, level; } menu_t; diff --git a/mbbsd/announce.c b/mbbsd/announce.c index e420d6f4..b549a252 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -911,7 +911,7 @@ isvisible_man(const menu_t * me) return 1; } int -a_menu(const char *maintitle, char *path, int lastlevel, char *trans_buffer) +a_menu(const char *maintitle, const char *path, int lastlevel, char *trans_buffer) { static char Fexit; // ¥Î¨Ó¸õ¥X recursion menu_t me; |