Skip to content

Commit

Permalink
changes due to seqcexit
Browse files Browse the repository at this point in the history
  • Loading branch information
lcn2 committed Aug 5, 2023
1 parent 96818dd commit 650ac3e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion jparse/json_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ json_util_parse_match_types(char *optarg)
errno = 0; /* pre-clear errno for errp() */
dup = strdup(optarg);
if (dup == NULL) {
errp(24, __func__, "strdup(%s) failed", optarg);
errp(43, __func__, "strdup(%s) failed", optarg);
not_reached();
}

Expand Down
10 changes: 5 additions & 5 deletions jparse/jval_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jval_print_count(struct jval *jval)
{
/* firewall */
if (jval == NULL) {
err(24, __func__, "jval is NULL");
err(23, __func__, "jval is NULL");
not_reached();
}

Expand Down Expand Up @@ -203,15 +203,15 @@ parse_jval_args(struct jval *jval, int *argc, char ***argv)

/* firewall */
if (jval == NULL) {
err(25, __func__, "jval is NULL");
err(24, __func__, "jval is NULL");
not_reached();
}
if (argc == NULL) {
err(26, __func__, "argc is NULL");
err(25, __func__, "argc is NULL");
not_reached();
}
if (argv == NULL) {
err(27, __func__, "argv is NULL");
err(26, __func__, "argv is NULL");
not_reached();
}

Expand Down Expand Up @@ -248,7 +248,7 @@ free_jval_cmp_op_lists(struct jval *jval)

/* firewall */
if (jval == NULL) {
err(28, __func__, "jval is NULL");
err(27, __func__, "jval is NULL");
not_reached();
}

Expand Down
8 changes: 4 additions & 4 deletions soup/location_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ lookup_location_name_r(char const *code, size_t *idx, struct location **location
* firewall
*/
if (code == NULL) {
err(11, __func__, "code is NULL");
err(13, __func__, "code is NULL");
not_reached();
}

Expand Down Expand Up @@ -307,7 +307,7 @@ lookup_location_code_r(char const *location_name, size_t *idx, struct location *
* firewall
*/
if (location_name == NULL) {
err(12, __func__, "location_name is NULL");
err(14, __func__, "location_name is NULL");
not_reached();
}

Expand Down Expand Up @@ -368,11 +368,11 @@ location_code_name_match(char const *code, char const *location_name)
* firewall
*/
if (code == NULL) {
err(13, __func__, "code is NULL");
err(15, __func__, "code is NULL");
not_reached();
}
if (location_name == NULL) {
err(14, __func__, "location_name is NULL");
err(16, __func__, "location_name is NULL");
not_reached();
}

Expand Down

0 comments on commit 650ac3e

Please sign in to comment.