From ee0dd13ca7dd452838f23231ae47e3d38e0a7070 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 28 Mar 2006 15:01:10 +0000 Subject: [PATCH] C99 compliance tweaks for sun studio. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@953 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/iax/src/iax2-parser.h | 2 +- libs/iax/src/iax2.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/iax/src/iax2-parser.h b/libs/iax/src/iax2-parser.h index 5dfaefc326..e57854a680 100644 --- a/libs/iax/src/iax2-parser.h +++ b/libs/iax/src/iax2-parser.h @@ -111,7 +111,7 @@ struct iax_frame { /* Actual, isolated frame header */ struct ast_frame af; unsigned char unused[AST_FRIENDLY_OFFSET]; - unsigned char afdata[0]; /* Data for frame */ + unsigned char afdata[]; /* Data for frame */ }; struct iax_ie_data { diff --git a/libs/iax/src/iax2.h b/libs/iax/src/iax2.h index f2717320fd..f2d18f903e 100644 --- a/libs/iax/src/iax2.h +++ b/libs/iax/src/iax2.h @@ -170,7 +170,7 @@ struct ast_iax2_full_hdr { unsigned char iseqno; /* Packet number (next incoming expected) */ char type; /* Frame type */ unsigned char csub; /* Compressed subclass */ - unsigned char iedata[0]; + unsigned char iedata[]; } __PACKED; /* Mini header is used only for voice frames -- delivered unreliably */ @@ -179,26 +179,26 @@ struct ast_iax2_mini_hdr { unsigned short ts; /* 16-bit Timestamp (high 16 bits from last ast_iax2_full_hdr) */ /* Frametype implicitly VOICE_FRAME */ /* subclass implicit from last ast_iax2_full_hdr */ - unsigned char data[0]; + unsigned char data[]; } __PACKED; struct ast_iax2_meta_hdr { unsigned short zeros; /* Zeros field -- must be zero */ unsigned char metacmd; /* Meta command */ unsigned char cmddata; /* Command Data */ - unsigned char data[0]; + unsigned char data[]; } __PACKED; struct ast_iax2_video_hdr { unsigned short zeros; /* Zeros field -- must be zero */ unsigned short callno; /* Video call number */ unsigned short ts; /* Timestamp and mark if present */ - unsigned char data[0]; + unsigned char data[]; } __PACKED; struct ast_iax2_meta_trunk_hdr { unsigned int ts; /* 32-bit timestamp for all messages */ - unsigned char data[0]; + unsigned char data[]; } __PACKED; struct ast_iax2_meta_trunk_entry { @@ -214,7 +214,7 @@ struct ast_iax2_firmware_header { unsigned char devname[16]; /* Device */ unsigned int datalen; /* Data length of file beyond header */ unsigned char chksum[16]; /* Checksum of all data */ - unsigned char data[0]; + unsigned char data[]; } __PACKED;