diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-01-08 13:14:12 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-01-08 13:14:12 +0000 |
commit | 41d6f00eaaf23d98000a86a28630193778903926 (patch) | |
tree | 865f85d6d39f6493b31a95b2b9bce86e56186eb2 /usr.bin/sndiod/listen.h | |
parent | a55fadaf1b418db764413824bc73e7f24616fd35 (diff) |
Make listen_new_xxx() routines return NULL on failure and check the
returned value wheneverer they are called.
Diffstat (limited to 'usr.bin/sndiod/listen.h')
-rw-r--r-- | usr.bin/sndiod/listen.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sndiod/listen.h b/usr.bin/sndiod/listen.h index cfef5c4d1a7..aa434548bbb 100644 --- a/usr.bin/sndiod/listen.h +++ b/usr.bin/sndiod/listen.h @@ -1,4 +1,4 @@ -/* $OpenBSD: listen.h,v 1.2 2015/12/14 17:44:29 ratchov Exp $ */ +/* $OpenBSD: listen.h,v 1.3 2016/01/08 13:14:11 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -29,8 +29,8 @@ struct listen { extern struct listen *listen_list; -void listen_new_un(char *); -void listen_new_tcp(char *, unsigned int); +int listen_new_un(char *); +int listen_new_tcp(char *, unsigned int); int listen_init(struct listen *); void listen_close(struct listen *); |