Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fix build after 346bfcf.
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
  • Loading branch information
lpereira committed Sep 30, 2015
1 parent 346bfcf commit 7835c2e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/modules/flow/string/string-icu.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ string_change_case(struct sol_flow_node *node,
if (!u_lower) {
errno = ENOMEM;
free(u_orig);
sol_flow_send_error_packet(node, errno, "Out of memory");
sol_flow_send_error_packet_errno(node, errno);
return -errno;
}

Expand All @@ -860,7 +860,7 @@ string_change_case(struct sol_flow_node *node,
if (r < 0) {
free(u_orig);
free(u_lower);
sol_flow_send_error_packet(node, -r, "%s", u_errorName(err));
sol_flow_send_error_packet_str(node, -r, u_errorName(err));
return r;
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/flow/switcher/switcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ error_forward(struct sol_flow_node *node, void *data, uint16_t port, uint16_t co
r = sol_flow_packet_get_error(packet, &code_value, &msg);
SOL_INT_CHECK(r, < 0, r);

return sol_flow_send_error_packet(node, code_value, "%s", msg);
return sol_flow_send_error_packet_str(node, code_value, msg);
}

static int
Expand Down
2 changes: 1 addition & 1 deletion src/test-fbp/converter-error.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

conv_error(converter/error)
const_error_code(constant/int:value=33)
const_error_msg(constant/string:value="Numerical argument out of domain")
const_error_msg(constant/string:value="Numerical argument out of domain (errno 33)")
const_int(constant/int:value=10)
const_zero(constant/int:value=0)
error_msg_equal(string/compare)
Expand Down
2 changes: 1 addition & 1 deletion src/test-fbp/switcher-simple-forward.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const_int(constant/int:value=10)
const_rgb(constant/rgb:value=255|10|100)
const_direction_vector(constant/direction-vector:value=255|10|100)
const_string(constant/string:value="Hello")
const_error(constant/string:value="Numerical argument out of domain")
const_error(constant/string:value="Numerical argument out of domain (errno 33)")
const_timestamp(constant/string:value="2016-09-23T09:30:00")
conv_timestamp(converter/string-to-timestamp)
conv_timestamp_str(converter/timestamp-to-string:format="%Y-%m-%dT%H:%M:%S")
Expand Down

0 comments on commit 7835c2e

Please sign in to comment.