Merge branch '1.8.0' into 1.8.1
authorPavel Labath <pavelo@centrum.sk>
Sat, 13 Mar 2010 00:15:33 +0000 (01:15 +0100)
committerPavel Labath <pavelo@centrum.sk>
Sat, 13 Mar 2010 00:15:33 +0000 (01:15 +0100)
configure.ac.in
src/conky.c
src/i8k.c
src/iconv_tools.c
src/proc.c
src/user.c

index 004f3e1..ebef3f8 100644 (file)
@@ -544,8 +544,9 @@ AC_ARG_ENABLE([wlan],
 AM_CONDITIONAL(BUILD_WLAN, test x$want_wlan = xyes)
 if test x$want_wlan = xyes; then
   AC_CHECK_HEADERS([iwlib.h], [], AC_MSG_ERROR([iwlib.h header not found]))
-  AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="$conky_LIBS -liw"], AC_MSG_ERROR([iw_sockets_open not found]))
-       AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
+  AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="-liw $conky_LIBS"],
+               AC_MSG_ERROR([iw_sockets_open not found]), [$conky_LIBS])
+  AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
 fi
 
 dnl
index b08df7c..500261b 100644 (file)
@@ -4508,7 +4508,7 @@ static int do_config_step(int *line, FILE *fp, char *buf, char **name, char **va
 }
 
 #ifdef X11
-void setalignment(int* text_alignment, unsigned int windowtype, const char* value, const char *f, int line, char setbyconffile) {
+void setalignment(int* ltext_alignment, unsigned int windowtype, const char* value, const char *f, int line, char setbyconffile) {
 #ifdef OWN_WINDOW
        if (windowtype == TYPE_DOCK) {
                NORM_ERR("alignment is disabled when own_window_type is dock");
@@ -4522,7 +4522,7 @@ void setalignment(int* text_alignment, unsigned int windowtype, const char* valu
                                CONF_ERR;
                        } else NORM_ERR("'%s' is not a alignment setting", value);
                } else {
-                       *text_alignment = a;
+                       *ltext_alignment = a;
                }
        } else if(setbyconffile == true) {
                CONF_ERR;
@@ -5587,7 +5587,9 @@ static const struct option longopts[] = {
        { 0, 0, 0, 0 }
 };
 
-void set_current_config() {
+void set_current_config(void);
+void set_current_config(void)
+{
        /* check if specified config file is valid */
        if (current_config) {
                struct stat sb;
index 5bfbd05..822c0c7 100644 (file)
--- a/src/i8k.c
+++ b/src/i8k.c
@@ -32,9 +32,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "logging.h"
-#include "temphelper.h"
 #include "text_object.h"
+#include "temphelper.h"
+#include "logging.h"
 
 struct {
        char *version;
index 6dc129c..f2a8e5d 100644 (file)
@@ -29,8 +29,8 @@
  */
 
 #include "config.h"
-#include "logging.h"
 #include "text_object.h"
+#include "logging.h"
 #include <iconv.h>
 #include <stdio.h>
 #include <stdlib.h>
index 218393e..63855c2 100644 (file)
@@ -28,8 +28,8 @@
  *
  */
 
-#include <logging.h>
 #include "conky.h"
+#include "logging.h"
 #include "proc.h"
 #include <unistd.h>
 #include <ctype.h>
index 7c326c0..6af54f4 100644 (file)
  *
  */
 
-#include <logging.h>
 #include <pwd.h>
 #include <grp.h>
 #include <errno.h>
 #include "conky.h"
+#include "logging.h"
 
 void print_uid_name(struct text_object *obj, char *p, int p_max_size) {
        struct passwd *pw;