projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0547bef
)
fix gcc warning about it not knowing which pointer indirection is const...
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 28 Apr 2011 19:09:53 +0000
(19:09 +0000)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 28 Apr 2011 19:09:53 +0000
(19:09 +0000)
citadel/citserver.c
patch
|
blob
|
history
diff --git
a/citadel/citserver.c
b/citadel/citserver.c
index a8db75c6115cd0e5e4a32e093b3ec35d5ae7ee7e..cfe5c1b1a13984a4df6bb0163051d476b663bcb7 100644
(file)
--- a/
citadel/citserver.c
+++ b/
citadel/citserver.c
@@
-482,7
+482,7
@@
void cmd_iden(char *argbuf)
cprintf("%d Ok\n",CIT_OK);
}
cprintf("%d Ok\n",CIT_OK);
}
-
+typedef const char *ccharp;
/*
* display system messages or help
*/
/*
* display system messages or help
*/
@@
-524,15
+524,15
@@
void cmd_mesg(char *mname)
/* Otherwise, look for the requested file by name. */
else {
/* Otherwise, look for the requested file by name. */
else {
- mesg_locate(targ, sizeof targ, buf2, 2, (const c
har *
*)dirs);
+ mesg_locate(targ, sizeof targ, buf2, 2, (const c
charp
*)dirs);
if (IsEmptyStr(targ)) {
snprintf(buf2, sizeof buf2, "%s.%d",
buf, CC->cs_clientdev);
mesg_locate(targ, sizeof targ, buf2, 2,
if (IsEmptyStr(targ)) {
snprintf(buf2, sizeof buf2, "%s.%d",
buf, CC->cs_clientdev);
mesg_locate(targ, sizeof targ, buf2, 2,
-
(const char *
*)dirs);
+
(const ccharp
*)dirs);
if (IsEmptyStr(targ)) {
mesg_locate(targ, sizeof targ, buf, 2,
if (IsEmptyStr(targ)) {
mesg_locate(targ, sizeof targ, buf, 2,
-
(const char *
*)dirs);
+
(const ccharp
*)dirs);
}
}
}
}
}
}
@@
-592,7
+592,7
@@
void cmd_emsg(char *mname)
dirs[0] = strdup(ctdl_message_dir);
dirs[1] = strdup(ctdl_hlp_dir);
dirs[0] = strdup(ctdl_message_dir);
dirs[1] = strdup(ctdl_hlp_dir);
- mesg_locate(targ, sizeof targ, buf, 2, (const c
har*
*)dirs);
+ mesg_locate(targ, sizeof targ, buf, 2, (const c
charp
*)dirs);
free(dirs[0]);
free(dirs[1]);
free(dirs[0]);
free(dirs[1]);