Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

missing static and initializer in codec_c #9

Merged
merged 1 commit into from

2 participants

@pijyoi

No description provided.

@hintjens hintjens merged commit 6f9c3dd into zeromq:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 23, 2012
  1. @pijyoi
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 8 deletions.
  1. +2 −2 model/codec_c.gsl
  2. +6 −6 src/fmq_msg.c
View
4 model/codec_c.gsl
@@ -810,7 +810,7 @@ $(class.name)_dup ($(class.name)_t *self)
.for class.field where type = "dictionary"
// Dump $(name) key=value pair to stdout
-int
+static int
s_$(name)_dump (const char *key, void *item, void *argument)
{
$(class.name)_t *self = ($(class.name)_t *) argument;
@@ -1125,7 +1125,7 @@ $(class.name)_$(name)_number ($(class.name)_t *self, char *key, uint64_t default
{
assert (self);
uint64_t value = default_value;
- char *string;
+ char *string = NULL;
if (self->$(name))
string = (char *) (zhash_lookup (self->$(name), key));
if (string)
View
12 src/fmq_msg.c
@@ -1037,7 +1037,7 @@ fmq_msg_dup (fmq_msg_t *self)
// Dump options key=value pair to stdout
-int
+static int
s_options_dump (const char *key, void *item, void *argument)
{
fmq_msg_t *self = (fmq_msg_t *) argument;
@@ -1046,7 +1046,7 @@ s_options_dump (const char *key, void *item, void *argument)
}
// Dump cache key=value pair to stdout
-int
+static int
s_cache_dump (const char *key, void *item, void *argument)
{
fmq_msg_t *self = (fmq_msg_t *) argument;
@@ -1055,7 +1055,7 @@ s_cache_dump (const char *key, void *item, void *argument)
}
// Dump headers key=value pair to stdout
-int
+static int
s_headers_dump (const char *key, void *item, void *argument)
{
fmq_msg_t *self = (fmq_msg_t *) argument;
@@ -1512,7 +1512,7 @@ fmq_msg_options_number (fmq_msg_t *self, char *key, uint64_t default_value)
{
assert (self);
uint64_t value = default_value;
- char *string;
+ char *string = NULL;
if (self->options)
string = (char *) (zhash_lookup (self->options, key));
if (string)
@@ -1591,7 +1591,7 @@ fmq_msg_cache_number (fmq_msg_t *self, char *key, uint64_t default_value)
{
assert (self);
uint64_t value = default_value;
- char *string;
+ char *string = NULL;
if (self->cache)
string = (char *) (zhash_lookup (self->cache, key));
if (string)
@@ -1785,7 +1785,7 @@ fmq_msg_headers_number (fmq_msg_t *self, char *key, uint64_t default_value)
{
assert (self);
uint64_t value = default_value;
- char *string;
+ char *string = NULL;
if (self->headers)
string = (char *) (zhash_lookup (self->headers, key));
if (string)
Something went wrong with that request. Please try again.