Skip to content

Commit

Permalink
Stop using gcc linker magic
Browse files Browse the repository at this point in the history
Somehow gcc figures out that nbd_err is err, because of the macro? not
sure.

This is confusing and black magic, stop doing it.
  • Loading branch information
yoe committed Aug 6, 2024
1 parent e788607 commit ff5846d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cliserv.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void err_nonfatal(const char *s) {
fprintf(stderr, "Error: %s\n", s1);
}

void err(const char *s) {
void nbd_err(const char *s) {
err_nonfatal(s);
fprintf(stderr, "Exiting.\n");
exit(EXIT_FAILURE);
Expand Down

0 comments on commit ff5846d

Please sign in to comment.