From d8dc44f36377c59164d19106f0f93843ea5b3a09 Mon Sep 17 00:00:00 2001 From: jbj Date: Mon, 15 Oct 2001 03:22:10 +0000 Subject: lclint fiddles to annotate globals. CVS patchset: 5106 CVS date: 2001/10/15 03:22:10 --- beecrypt/entropy.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'beecrypt/entropy.c') diff --git a/beecrypt/entropy.c b/beecrypt/entropy.c index a4f21b1bf..3b1c52ae5 100644 --- a/beecrypt/entropy.c +++ b/beecrypt/entropy.c @@ -808,18 +808,22 @@ int entropy_wincrypt(uint32* data, int size) #if HAVE_DEV_AUDIO /** \ingroup ES_audio_m */ -/*@observer@*/ static const char* name_dev_audio = "/dev/audio"; +/*@observer@*/ /*@unchecked@*/ +static const char* name_dev_audio = "/dev/audio"; /** \ingroup ES_audio_m */ +/*@unchecked@*/ static int dev_audio_fd = -1; /** \ingroup ES_audio_m */ # ifdef _REENTRANT # if HAVE_SYNCH_H +/*@unchecked@*/ static mutex_t dev_audio_lock = DEFAULTMUTEX; # elif HAVE_PTHREAD_H +/*@unchecked@*/ static pthread_mutex_t dev_audio_lock = PTHREAD_MUTEX_INITIALIZER; # else # error Need locking mechanism @@ -830,18 +834,22 @@ static pthread_mutex_t dev_audio_lock = PTHREAD_MUTEX_INITIALIZER; #if HAVE_DEV_DSP /** \ingroup ES_dsp_m */ -/*@observer@*/ static const char* name_dev_dsp = "/dev/dsp"; +/*@observer@*/ /*@unchecked@*/ +static const char* name_dev_dsp = "/dev/dsp"; /** \ingroup ES_dsp_m */ +/*@unchecked@*/ static int dev_dsp_fd = -1; /** \ingroup ES_dsp_m */ # ifdef _REENTRANT # if HAVE_SYNCH_H +/*@unchecked@*/ static mutex_t dev_dsp_lock = DEFAULTMUTEX; # elif HAVE_PTHREAD_H +/*@unchecked@*/ static pthread_mutex_t dev_dsp_lock = PTHREAD_MUTEX_INITIALIZER; # else # error Need locking mechanism @@ -852,18 +860,22 @@ static pthread_mutex_t dev_dsp_lock = PTHREAD_MUTEX_INITIALIZER; #if HAVE_DEV_RANDOM /** \ingroup ES_random_m */ -/*@observer@*/ static const char* name_dev_random = "/dev/random"; +/*@observer@*/ /*@unchecked@*/ +static const char* name_dev_random = "/dev/random"; /** \ingroup ES_random_m */ +/*@unchecked@*/ static int dev_random_fd = -1; /** \ingroup ES_random_m */ # ifdef _REENTRANT # if HAVE_SYNCH_H +/*@unchecked@*/ static mutex_t dev_random_lock = DEFAULTMUTEX; # elif HAVE_PTHREAD_H +/*@unchecked@*/ static pthread_mutex_t dev_random_lock = PTHREAD_MUTEX_INITIALIZER; # else # error Need locking mechanism @@ -874,18 +886,22 @@ static pthread_mutex_t dev_random_lock = PTHREAD_MUTEX_INITIALIZER; #if HAVE_DEV_URANDOM /** \ingroup ES_urandom_m */ -/*@observer@*/ static const char* name_dev_urandom = "/dev/urandom"; +/*@observer@*/ /*@unchecked@*/ +static const char* name_dev_urandom = "/dev/urandom"; /** \ingroup ES_urandom_m */ +/*@unchecked@*/ static int dev_urandom_fd = -1; /** \ingroup ES_urandom_m */ # ifdef _REENTRANT # if HAVE_SYNCH_H +/*@unchecked@*/ static mutex_t dev_urandom_lock = DEFAULTMUTEX; # elif HAVE_PTHREAD_H +/*@unchecked@*/ static pthread_mutex_t dev_urandom_lock = PTHREAD_MUTEX_INITIALIZER; # else # error Need locking mechanism @@ -896,18 +912,22 @@ static pthread_mutex_t dev_urandom_lock = PTHREAD_MUTEX_INITIALIZER; #if HAVE_DEV_TTY /** \ingroup ES_tty_m */ -/*@observer@*/ static const char *dev_tty_name = "/dev/tty"; +/*@observer@*/ /*@unchecked@*/ +static const char *dev_tty_name = "/dev/tty"; /** \ingroup ES_tty_m */ +/*@unchecked@*/ static int dev_tty_fd = -1; /** \ingroup ES_tty_m */ # ifdef _REENTRANT # if HAVE_SYNCH_H +/*@unchecked@*/ static mutex_t dev_tty_lock = DEFAULTMUTEX; # elif HAVE_PTHREAD_H +/*@unchecked@*/ static pthread_mutex_t dev_tty_lock = PTHREAD_MUTEX_INITIALIZER; # else # error Need locking mechanism -- cgit v1.2.3