projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix lot of warnings
[lcr.git]
/
extension.c
diff --git
a/extension.c
b/extension.c
index
ed88c15
..
3a34914
100644
(file)
--- a/
extension.c
+++ b/
extension.c
@@
-13,7
+13,7
@@
/* extension */
/* extension */
-char *ext_rights[] = {
+c
onst c
har *ext_rights[] = {
"none",
"internal",
"local",
"none",
"internal",
"local",
@@
-22,7
+22,7
@@
char *ext_rights[] = {
NULL
};
NULL
};
-char *ext_yesno[] = {
+c
onst c
har *ext_yesno[] = {
"no",
"yes",
NULL
"no",
"yes",
NULL
@@
-151,7
+151,7
@@
int read_extension(struct extension *ext, char *num)
SCPY(ext->name, param);
if (param2[0])
{
SCPY(ext->name, param);
if (param2[0])
{
- SCAT(ext->name, " ");
+ SCAT(ext->name,
(char *)
" ");
SCAT(ext->name, param2);
}
SCAT(ext->name, param2);
}
@@
-1329,13
+1329,13
@@
int write_extension(struct extension *ext, char *number)
*/
int write_log(char *number, char *callerid, char *calledid, time_t start, time_t stop, int aoce, int cause, int location)
{
*/
int write_log(char *number, char *callerid, char *calledid, time_t start, time_t stop, int aoce, int cause, int location)
{
- char *mon[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
+ c
onst c
har *mon[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
FILE *fp=NULL;
char filename[256];
struct tm *tm;
if (callerid[0] == '\0')
FILE *fp=NULL;
char filename[256];
struct tm *tm;
if (callerid[0] == '\0')
- callerid = "<unknown>";
+ callerid =
(char *)
"<unknown>";
SPRINT(filename, "%s/%s/%s/log", INSTALL_DATA, options.extensions_dir, number);
SPRINT(filename, "%s/%s/%s/log", INSTALL_DATA, options.extensions_dir, number);