aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/eyesdn.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-05-07 05:26:40 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-05-07 05:26:40 +0000
commit3d39efc2c36d441f093f75be62988ffa49faa5d7 (patch)
tree48c516cfda90c6e435de81e58697a7b937a59be2 /wiretap/eyesdn.c
parent38f233cd993206c05a6c4677158bcca1c76ee6eb (diff)
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25248
Diffstat (limited to 'wiretap/eyesdn.c')
-rw-r--r--wiretap/eyesdn.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/wiretap/eyesdn.c b/wiretap/eyesdn.c
index 3ea86e3395..534f72274c 100644
--- a/wiretap/eyesdn.c
+++ b/wiretap/eyesdn.c
@@ -65,7 +65,7 @@ static int esc_read(guint8 *buf, int len, FILE_T fh, int seekback)
int err;
if(seekback) cur_off = file_tell(fh);
- else cur_off=0; // suppress uninitialized warning
+ else cur_off=0; /* suppress uninitialized warning */
for(i=0; i<len; i++) {
value=file_getc(fh);
@@ -271,33 +271,33 @@ parse_eyesdn_rec_hdr(wtap *wth, FILE_T fh,
switch(direction >> 1) {
default:
- case EYESDN_ENCAP_ISDN: // ISDN
+ case EYESDN_ENCAP_ISDN: /* ISDN */
pseudo_header->isdn.uton = direction & 1;
pseudo_header->isdn.channel = channel;
- if(channel) { // bearer channels
+ if(channel) { /* bearer channels */
if(wth) {
- wth->phdr.pkt_encap = WTAP_ENCAP_ISDN; // recognises PPP
- pseudo_header->isdn.uton=!pseudo_header->isdn.uton; // bug
+ wth->phdr.pkt_encap = WTAP_ENCAP_ISDN; /* recognises PPP */
+ pseudo_header->isdn.uton=!pseudo_header->isdn.uton; /* bug */
}
- } else { // D channel
+ } else { /* D channel */
if(wth) {
wth->phdr.pkt_encap = WTAP_ENCAP_ISDN;
}
}
break;
- case EYESDN_ENCAP_MSG: // Layer 1 message
+ case EYESDN_ENCAP_MSG: /* Layer 1 message */
if(wth) {
wth->phdr.pkt_encap = WTAP_ENCAP_LAYER1_EVENT;
}
pseudo_header->l1event.uton = (direction & 1);
break;
- case EYESDN_ENCAP_LAPB: // X.25 via LAPB
+ case EYESDN_ENCAP_LAPB: /* X.25 via LAPB */
if(wth) {
wth->phdr.pkt_encap = WTAP_ENCAP_LAPB;
}
pseudo_header->x25.flags = (direction & 1) ? 0 : 0x80;
break;
- case EYESDN_ENCAP_ATM: { // ATM cells
+ case EYESDN_ENCAP_ATM: { /* ATM cells */
#define CELL_LEN 53
unsigned char cell[CELL_LEN];
if(pkt_len != CELL_LEN) {
@@ -322,11 +322,11 @@ parse_eyesdn_rec_hdr(wtap *wth, FILE_T fh,
pseudo_header->atm.type=TRAF_UMTS_FP;
pseudo_header->atm.subtype=TRAF_ST_UNKNOWN;
pseudo_header->atm.vpi=((cell[0]&0xf)<<4) + (cell[0]&0xf);
- pseudo_header->atm.vci=((cell[0]&0xf)<<4) + cell[0]; // from cell
+ pseudo_header->atm.vci=((cell[0]&0xf)<<4) + cell[0]; /* from cell */
pseudo_header->atm.channel=direction & 1;
}
break;
- case EYESDN_ENCAP_MTP2: // SS7 frames
+ case EYESDN_ENCAP_MTP2: /* SS7 frames */
pseudo_header->mtp2.sent = direction & 1;
pseudo_header->mtp2.annex_a_used = MTP2_ANNEX_A_USED_UNKNOWN;
pseudo_header->mtp2.link_number = channel;