diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-10-28 23:00:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-10-28 23:00:09 +0000 |
commit | cd4ba74c93be08a2f8a29f31abb3a9f7d3ae7508 (patch) | |
tree | 126d2450ac90c096f3fbd6a90b0409940fccbbdd /lib/libsndio | |
parent | 17dd131c4d105561317952613504b02a936eceac (diff) |
sio_initpar() is supposed to return void like the documentation
says according to ratchov@. Make it so, and crank major.
ok ratchov@
Diffstat (limited to 'lib/libsndio')
-rw-r--r-- | lib/libsndio/shlib_version | 2 | ||||
-rw-r--r-- | lib/libsndio/sndio.c | 5 | ||||
-rw-r--r-- | lib/libsndio/sndio.h | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/lib/libsndio/shlib_version b/lib/libsndio/shlib_version index 1edea46de91..b52599a164f 100644 --- a/lib/libsndio/shlib_version +++ b/lib/libsndio/shlib_version @@ -1,2 +1,2 @@ -major=1 +major=2 minor=0 diff --git a/lib/libsndio/sndio.c b/lib/libsndio/sndio.c index 6fbc422be34..3b5d5dc80b2 100644 --- a/lib/libsndio/sndio.c +++ b/lib/libsndio/sndio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sndio.c,v 1.1 2008/10/27 00:26:33 ratchov Exp $ */ +/* $OpenBSD: sndio.c,v 1.2 2008/10/28 23:00:08 jsg Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -29,12 +29,11 @@ #define SIO_PAR_MAGIC 0x83b905a4 -int +void sio_initpar(struct sio_par *par) { memset(par, 0xff, sizeof(struct sio_par)); par->__magic = SIO_PAR_MAGIC; - return 1; } /* diff --git a/lib/libsndio/sndio.h b/lib/libsndio/sndio.h index d8c90831b71..9ddd12f414d 100644 --- a/lib/libsndio/sndio.h +++ b/lib/libsndio/sndio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sndio.h,v 1.1 2008/10/27 00:26:33 ratchov Exp $ */ +/* $OpenBSD: sndio.h,v 1.2 2008/10/28 23:00:08 jsg Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -114,7 +114,7 @@ struct sio_cap { int sio_strtoenc(struct sio_par *, char *); int sio_enctostr(struct sio_par *, char *); -int sio_initpar(struct sio_par *); +void sio_initpar(struct sio_par *); struct sio_hdl *sio_open_aucat(char *, unsigned, int); struct sio_hdl *sio_open_sun(char *, unsigned, int); |