[Asterisk-cvs]
asterisk/channels alaw.h, 1.2, 1.3 chan_phone.c, 1.40, 1.41
markster at lists.digium.com
markster at lists.digium.com
Sat Jan 15 17:44:42 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5193/channels
Modified Files:
alaw.h chan_phone.c
Log Message:
Repair // comments to /* */ comments (bug #3347)
Index: alaw.h
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/alaw.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- alaw.h 27 Apr 2003 21:34:27 -0000 1.2
+++ alaw.h 15 Jan 2005 23:48:12 -0000 1.3
@@ -21,7 +21,7 @@
#define INT2ALAW(x) int2alaw[(x>>4)+4096]
-// table to convert unsigned a-law bytes to signed linear integers
+/* table to convert unsigned a-law bytes to signed linear integers */
static const int alaw2int[256] = {
-5504,5504,-344,344,-22016,22016,-1376,1376,-2752,2752,-88,88,-11008,11008,
@@ -46,9 +46,9 @@
};
-// table to convert linear shorts to a-law bytes
-// shift the integer to be 12+1 bit first, then add 4096 to get
-// the right index
+/* table to convert linear shorts to a-law bytes */
+/* shift the integer to be 12+1 bit first, then add 4096 to get */
+/* the right index */
static const unsigned char int2alaw[8192] = {
84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,
Index: chan_phone.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_phone.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- chan_phone.c 1 Jan 2005 23:58:57 -0000 1.40
+++ chan_phone.c 15 Jan 2005 23:48:12 -0000 1.41
@@ -157,7 +157,7 @@
case '#':
outdigit = 12;
break;
- case 'f': //flash
+ case 'f': /*flash*/
case 'F':
ioctl(p->fd, IXJCTL_PSTN_SET_STATE, PSTN_ON_HOOK);
usleep(320000);
@@ -337,7 +337,7 @@
ast_log(LOG_WARNING, "Failed to start recording\n");
return -1;
}
- //set the DTMF times (the default is too short)
+ /* set the DTMF times (the default is too short) */
ioctl(p->fd, PHONE_SET_TONE_ON_TIME, 300);
ioctl(p->fd, PHONE_SET_TONE_OFF_TIME, 200);
return 0;
More information about the svn-commits
mailing list