Skip to content

Commit 3fc3a87

Browse files
committed
drivers/nhs_ser.c: use set_exit_flag() with symbolic EF_EXIT_* values [#2670]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 7781517 commit 3fc3a87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nhs_ser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2372,7 +2372,7 @@ void upsdrv_shutdown(void) {
23722372

23732373
/* replace with a proper shutdown function */
23742374
upslogx(LOG_ERR, "shutdown not supported");
2375-
set_exit_flag(-1);
2375+
set_exit_flag(EF_EXIT_FAILURE);
23762376

23772377
upsdebugx(1, "Driver shutdown");
23782378
}

0 commit comments

Comments
 (0)