changed copyright dates to 2012
[psensor.git] / src / rsensor.c
index 32e4664..fbf6d2b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2011 jeanfi@gmail.com
+ * Copyright (C) 2010-2012 jeanfi@gmail.com
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -100,7 +100,7 @@ static json_object *get_json_object(const char *url)
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cbk_curl);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
 
-       log_printf(LOG_DEBUG, "HTTP request %s", url);
+       log_debug("HTTP request %s", url);
        if (curl_easy_perform(curl) == CURLE_OK)
                obj = json_tokener_parse(chunk.data);
        else
@@ -176,7 +176,7 @@ void remote_psensor_update(struct psensor *s)
                        tv.tv_usec = 0;
 
                        psensor_set_current_measure
-                           (s, json_object_get_double(ov), tv);;
+                           (s, json_object_get_double(ov), tv);
                }
 
                json_object_put(obj);