[Asterisk-cvs] asterisk/channels chan_features.c, 1.7,
1.8 chan_oss.c, 1.47, 1.48
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Thu Apr 21 01:39:43 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv7113/channels
Modified Files:
chan_features.c chan_oss.c
Log Message:
fix various compiler warnings
Index: chan_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_features.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- chan_features.c 21 Apr 2005 06:02:43 -0000 1.7
+++ chan_features.c 21 Apr 2005 06:30:23 -0000 1.8
@@ -123,6 +123,7 @@
return -1;
}
+#if 0
static void wakeup_sub(struct feature_pvt *p, int a)
{
struct ast_frame null = { AST_FRAME_NULL, };
@@ -141,6 +142,7 @@
break;
}
}
+#endif
static void restore_channel(struct feature_pvt *p, int index)
{
@@ -180,6 +182,7 @@
}
}
+#if 0
static void swap_subs(struct feature_pvt *p, int a, int b)
{
int tinthreeway;
@@ -200,6 +203,7 @@
wakeup_sub(p, a);
wakeup_sub(p, b);
}
+#endif
static int features_answer(struct ast_channel *ast)
{
Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- chan_oss.c 21 Apr 2005 06:02:43 -0000 1.47
+++ chan_oss.c 21 Apr 2005 06:30:23 -0000 1.48
@@ -119,7 +119,7 @@
static struct ast_channel *oss_request(const char *type, int format, void *data, int *cause);
static int oss_digit(struct ast_channel *c, char digit);
-static int oss_text(struct ast_channel *c, char *text);
+static int oss_text(struct ast_channel *c, const char *text);
static int oss_hangup(struct ast_channel *c);
static int oss_answer(struct ast_channel *c);
static struct ast_frame *oss_read(struct ast_channel *chan);
@@ -484,7 +484,7 @@
return 0;
}
-static int oss_text(struct ast_channel *c, char *text)
+static int oss_text(struct ast_channel *c, const char *text)
{
ast_verbose( " << Console Received text %s >> \n", text);
return 0;
More information about the svn-commits
mailing list