Trivial warning fixes:

- Might be used uninitialized
- not a prototype
- comma at end of enum


svn path=/trunk/; revision=28730
This commit is contained in:
Jörg Mayer 2009-06-15 02:34:53 +00:00
parent ce3d46b20c
commit c321f29518
8 changed files with 10 additions and 10 deletions

View File

@ -58,9 +58,9 @@ typedef enum {
HIP_I2,
HIP_R2,
UPDATE=16,
NOTIFY=17,
CLOSE=18,
CLOSE_ACK=19,
NOTIFY=17,
CLOSE=18,
CLOSE_ACK=19
} HIP_PACKETS;
/* HIP TLV parameters listed in order of RFCs */

View File

@ -1830,7 +1830,7 @@ get_hf_for_header(char* header_name)
*
*/
static void
add_hf_info_for_headers()
add_hf_info_for_headers(void)
{
hf_register_info* hf = NULL;
gint* hf_id = NULL;

View File

@ -1000,7 +1000,7 @@ dissect_isakmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tvbuff_t *decr_tvb;
proto_tree *decr_tree;
address null_addr;
void *pd_save;
void *pd_save = NULL;
gboolean pd_changed = FALSE;
#endif /* HAVE_LIBGCRYPT */

View File

@ -105,7 +105,7 @@ static gboolean try_heuristic_first = FALSE;
/* Conversation and process code originally copied from packet-tcp.c */
static struct udp_analysis *
init_udp_conversation_data()
init_udp_conversation_data(void)
{
struct udp_analysis *udpd=NULL;

View File

@ -74,7 +74,7 @@ typedef struct{
/* Init routine for the Security dissectors. */
extern void zbee_security_register (module_t *module, int proto);
extern void zbee_security_handoff ();
extern void zbee_security_handoff (void);
/* Security Dissector Routine. */
extern tvbuff_t *dissect_zbee_secure(tvbuff_t *, packet_info *, proto_tree *, guint, guint64);

View File

@ -812,7 +812,7 @@ static void sctp_graph_draw(struct sctp_udata *u_data)
* If an association has both SAKC and NR_SACK PDU's
* a warning is popped
*/
void updateLabels()
void updateLabels(void)
{
if (gIsSackChunkPresent && gIsNRSackChunkPresent)
{

View File

@ -156,4 +156,4 @@ void parseEUInformation(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *sz
void parseAnnotation(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
void parseProgramDiagnosticDataType(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
void registerComplexTypes();
void registerComplexTypes(void);

View File

@ -106,4 +106,4 @@ void parseTransferSubscriptionsRequest(proto_tree *tree, tvbuff_t *tvb, gint *pO
void parseTransferSubscriptionsResponse(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
void parseDeleteSubscriptionsRequest(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
void parseDeleteSubscriptionsResponse(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
void registerServiceTypes();
void registerServiceTypes(void);