From 239182657d8e377f591b4ba79ddc3a647dd7e527 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 16 Jul 2001 09:50:01 +0000 Subject: [PATCH] Fixed typos. --- src/hwdep/hwdep.c | 12 ++++++------ src/hwdep/hwdep_hw.c | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/hwdep/hwdep.c b/src/hwdep/hwdep.c index c6627892..b5dcf140 100644 --- a/src/hwdep/hwdep.c +++ b/src/hwdep/hwdep.c @@ -140,11 +140,11 @@ static int snd_hwdep_open_noupdate(snd_hwdep_t **hwdep, snd_config_t *root, cons /** * \brief Opens a new connection to the HwDep interface. * \param hwdep Returned handle (NULL if not wanted) - * \param name ASCII identifier of the RawMidi handle + * \param name ASCII identifier of the HwDep handle * \param mode Open mode * \return 0 on success otherwise a negative error code * - * Opens a new connection to the RawMidi interface specified with + * Opens a new connection to the HwDep interface specified with * an ASCII identifier and mode. */ int snd_hwdep_open(snd_hwdep_t **hwdep, const char *name, int mode) @@ -158,11 +158,11 @@ int snd_hwdep_open(snd_hwdep_t **hwdep, const char *name, int mode) } /** - * \brief close RawMidi handle - * \param hwdep RawMidi handle + * \brief close HwDep handle + * \param hwdep HwDep handle * \return 0 on success otherwise a negative error code * - * Closes the specified RawMidi handle and frees all associated + * Closes the specified HwDep handle and frees all associated * resources. */ int snd_hwdep_close(snd_hwdep_t *hwdep) @@ -180,7 +180,7 @@ int snd_hwdep_close(snd_hwdep_t *hwdep) /** * \brief get identifier of HwDep handle * \param hwdep a Hwdep handle - * \return ascii identifier of RawMidi handle + * \return ascii identifier of HwDep handle * * Returns the ASCII identifier of given HwDep handle. It's the same * identifier specified in snd_hwdep_open(). diff --git a/src/hwdep/hwdep_hw.c b/src/hwdep/hwdep_hw.c index 16a58fac..fbbfa7dc 100644 --- a/src/hwdep/hwdep_hw.c +++ b/src/hwdep/hwdep_hw.c @@ -35,7 +35,6 @@ static int snd_hwdep_hw_close(snd_hwdep_t *hwdep) int res; assert(hwdep); res = close(hwdep->poll_fd) < 0 ? -errno : 0; - free(hwdep); return res; } -- 2.47.1