]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
C99 compliance tweaks for sun studio.
authorMichael Jerris <mike@jerris.com>
Tue, 28 Mar 2006 15:01:10 +0000 (15:01 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 28 Mar 2006 15:01:10 +0000 (15:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@953 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/iax/src/iax2-parser.h
libs/iax/src/iax2.h

index 5dfaefc3267764dd63332b1d572506337ba66ae6..e57854a680759eb10aa51ea72dbbd244d82da95d 100644 (file)
@@ -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 {
index f2717320fdf73480b3a317745f41d90a05dc5c5c..f2d18f903e7fb78ec2a872633ac3f750c1f30090 100644 (file)
@@ -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;