]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed typos.
authorJaroslav Kysela <perex@perex.cz>
Mon, 16 Jul 2001 09:50:01 +0000 (09:50 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 16 Jul 2001 09:50:01 +0000 (09:50 +0000)
src/hwdep/hwdep.c
src/hwdep/hwdep_hw.c

index c66278928630b11d766104481114fb46abc74666..b5dcf140772f4b7910e3739dacc3800acf84c3dd 100644 (file)
@@ -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().
index 16a58fac187dac035ef14e1062f0184dc2ede182..fbbfa7dc87a1023484f5ad399abb758ef928c4a7 100644 (file)
@@ -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;
 }