Skip to content

Commit

Permalink
Merge pull request #368 from vyskocilm/master
Browse files Browse the repository at this point in the history
Problem: can't build codec with strings type (unused variable)
  • Loading branch information
bluca authored Jul 18, 2017
2 parents 9c1cae0 + 40b7898 commit deaa8e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zproto_codec_c.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ $(class.name)_zpl ($(class.name)_t *self, zconfig_t *parent)
char *$(name) = (char *) zlist_first (self->$(name));
while ($(name)) {
char *key = zsys_sprintf ("%zu", i);
zconfig_putf (config, key, "%s", $(name));
zconfig_putf (strings, key, "%s", $(name));
zstr_free (&key);
i++;
$(name) = (char *) zlist_next (self->$(name));
Expand Down
2 changes: 1 addition & 1 deletion src/zproto_codec_c_v1.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ $(class.name)_zpl ($(class.name)_t *self, zconfig_t *parent)
char *$(name) = (char *) zlist_first (self->$(name));
while ($(name)) {
char *key = zsys_sprintf ("%zu", i);
zconfig_putf (config, key, "%s", $(name));
zconfig_putf (strings, key, "%s", $(name));
zstr_free (&key);
i++;
$(name) = (char *) zlist_next (self->$(name));
Expand Down

0 comments on commit deaa8e8

Please sign in to comment.