Skip to content

Commit 4ea6643

Browse files
committed
res_alarmsystem: Fix invalid return value.
* Fix returning void * from a function with return type int, caught by gcc 14.2.1. * Fix res_alarmsystem sample config being misnamed.
1 parent 87338a0 commit 4ea6643

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

res/res_alarmsystem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ static int load_config(void)
18821882
if (ast_bind(s->listen_fd, &sin)) {
18831883
ast_log(LOG_ERROR, "Unable to bind to %s: %s\n", ast_sockaddr_stringify(&sin), strerror(errno));
18841884
close(s->listen_fd);
1885-
return NULL;
1885+
return -1;
18861886
}
18871887

18881888
ast_debug(1, "Started alarm system server on %s\n", ast_sockaddr_stringify(&sin));

0 commit comments

Comments
 (0)