This is an automated email from the git hooks/post-receive script.

landry pushed a 
commit to branch 
master
in repository panel-plugins/xfce4-mpc-plugin.

commit 992c28df85fcaf9994ab875bed948d3ac51ee944
Author: Landry Breuil <lan...@xfce.org>
Date:   Fri Dec 7 19:38:37 2018 +0100

    Fix some c90 warnings about initialisations/declarations
---
 panel-plugin/simple-libmpd.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/simple-libmpd.c b/panel-plugin/simple-libmpd.c
index 277a704..87ad6e7 100644
--- a/panel-plugin/simple-libmpd.c
+++ b/panel-plugin/simple-libmpd.c
@@ -182,8 +182,8 @@ int mpd_wait_for_answer(MpdObj *mo)
 {
    struct timeval tv;
    int err,nbread;
-   err = nbread = 0;
    fd_set fds;
+   err = nbread = 0;
 
    DBG("!");
 
@@ -667,10 +667,11 @@ int mpd_check_error(MpdObj* mo)
 
 void mpd_send_password(MpdObj* mo)
 {
-   DBG("!");
    char outbuf[256];
+   int wrote;
+   DBG("!");
    /* write password 'password' to socket */
-   int wrote = snprintf(outbuf, sizeof(outbuf), "password %s\n",mo->pass);
+   wrote = snprintf(outbuf, sizeof(outbuf), "password %s\n",mo->pass);
    if (wrote > 255) {
        /* the password is too long to fit though there doesn't seem to be a
         * nice way to report this error :-/ */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to