summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-04-18 21:39:20 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-04-18 21:39:20 +0000
commitd85073dc1f6c25d09610b8c56871474eaeae55d4 (patch)
tree7e993d7fa7f944497cb89614feef9a7dfd42f14e /include
parent501ac5189ccdbc4c51d15a33d3a7e84d6a8a0e7b (diff)
correct array index calculation (thanks mtaht3!)
update header file comments to reflect new usage of structure field git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/translate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h
index 21643fe32..6d5ed1526 100644
--- a/include/asterisk/translate.h
+++ b/include/asterisk/translate.h
@@ -65,8 +65,10 @@ struct ast_trans_pvt; /* declared below */
*/
struct ast_translator {
const char name[80]; /*! Name of translator */
- int srcfmt; /*! Source format (note: bit position) */
- int dstfmt; /*! Destination format (note: bit position) */
+ int srcfmt; /*! Source format (note: bit position,
+ converted to index during registration) */
+ int dstfmt; /*! Destination format (note: bit position,
+ converted to index during registration) */
/*! initialize private data associated with the translator */
void *(*newpvt)(struct ast_trans_pvt *);