Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Commit

Permalink
fixed warning and deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Unia committed Apr 28, 2013
1 parent a2d8c2e commit 6012a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=dwmst-git
_gitname=dwmst
pkgver=2013.04.17
pkgver=2013.04.18
pkgrel=1
pkgdesc="Hardcoded statusbar for DWM"
arch=('any')
Expand Down
3 changes: 1 addition & 2 deletions dwmst.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ int main() {
conn = mpd_connection_new(NULL, 0, 30000);
#endif
#ifdef AUD
g_type_init();
connection = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
session = dbus_g_proxy_new_for_name(connection, AUDACIOUS_DBUS_SERVICE, AUDACIOUS_DBUS_PATH, AUDACIOUS_DBUS_INTERFACE);
#endif
Expand Down Expand Up @@ -117,7 +116,7 @@ int main() {
snd_mixer_selem_id_set_name(mute_info, VOL_CH);
pcm_mixer = snd_mixer_find_selem(handle, vol_info);
mas_mixer = snd_mixer_find_selem(handle, mute_info);
snd_mixer_selem_get_playback_volume_range(pcm_mixer, &min, &max);
snd_mixer_selem_get_playback_volume_range((snd_mixer_elem_t *)pcm_mixer, &min, &max);
snd_mixer_selem_get_playback_volume(pcm_mixer, SND_MIXER_SCHN_MONO, &vol);
snd_mixer_selem_get_playback_switch(mas_mixer, SND_MIXER_SCHN_MONO, &mute);
if (!mute)
Expand Down

0 comments on commit 6012a46

Please sign in to comment.