summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-12 15:04:44 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-12 15:04:44 +0100
commit371d0cfc0c02dfc6889be3b7e3100d380e65410a (patch)
tree11e2ae6a47b7230a6640738e2848bcd06ad3b7c2 /src
parentbaadbb3ca615ca34a09244bcdf3924664816c91d (diff)
Change copyright as ASP64 is dead and ive always been the only one
working on this.
Diffstat (limited to 'src')
-rw-r--r--src/bin/global.h4
-rw-r--r--src/bin/libconf.c13
-rw-r--r--src/bin/logfiles.c5
-rw-r--r--src/bin/main.c17
-rw-r--r--src/bin/send.c5
5 files changed, 14 insertions, 30 deletions
diff --git a/src/bin/global.h b/src/bin/global.h
index b812464..cc6fe43 100644
--- a/src/bin/global.h
+++ b/src/bin/global.h
@@ -25,6 +25,10 @@
25 * 25 *
26 * Contains all global variables we need 26 * Contains all global variables we need
27 */ 27 */
28#ifdef HAVE_CONFIG_H
29# include "config.h"
30#endif
31
28#include <Eina.h> 32#include <Eina.h>
29#include <Ecore.h> 33#include <Ecore.h>
30#include <Ecore_File.h> 34#include <Ecore_File.h>
diff --git a/src/bin/libconf.c b/src/bin/libconf.c
index 40edef5..0be5eba 100644
--- a/src/bin/libconf.c
+++ b/src/bin/libconf.c
@@ -217,16 +217,3 @@ int libconfig_free(struct libconfig *myconf)
217 eina_list_free(myconf->lconfig); 217 eina_list_free(myconf->lconfig);
218 return(0); 218 return(0);
219} 219}
220
221/**
222 * @fn void libconfig_version(char *version)
223 * @brief Gets revision number of the library
224 *
225 * @param version buffer to use to store revision number
226 *
227 */
228void libconfig_version(char *version)
229{
230 strcpy(version, REVISION);
231 return;
232}
diff --git a/src/bin/logfiles.c b/src/bin/logfiles.c
index e2cf98c..dcc1e77 100644
--- a/src/bin/logfiles.c
+++ b/src/bin/logfiles.c
@@ -26,6 +26,11 @@
26 * @see logfile 26 * @see logfile
27 * @see list_logfiles 27 * @see list_logfiles
28 */ 28 */
29#ifdef HAVE_CONFIG_H
30# include "config.h"
31#endif
32
33
29#include "logfiles.h" 34#include "logfiles.h"
30 35
31/** 36/**
diff --git a/src/bin/main.c b/src/bin/main.c
index 0a94e1c..11ea95e 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -102,19 +102,15 @@ int main(int argc, char **argv)
102 int option_index = 0; 102 int option_index = 0;
103 103
104 static struct option long_options[] = { 104 static struct option long_options[] = {
105 {"version", 0, 0, 'v'},
106 {"help", 0, 0, 'h'}, 105 {"help", 0, 0, 'h'},
107 {0, 0, 0, 0} 106 {0, 0, 0, 0}
108 }; 107 };
109 108
110 c = getopt_long(argc, argv, "vh", long_options, &option_index); 109 c = getopt_long(argc, argv, "h", long_options, &option_index);
111 if (c == -1) break; 110 if (c == -1) break;
112 111
113 switch (c) 112 switch (c)
114 { 113 {
115 case 'v':
116 version(argv[0]);
117 exit(0);
118 case 'h': 114 case 'h':
119 usage(argv[0]); 115 usage(argv[0]);
120 exit(0); 116 exit(0);
@@ -168,14 +164,3 @@ void usage(char *progname)
168 printf("\tDebugging : \n"); 164 printf("\tDebugging : \n");
169 printf("\t\tEINA_LOG_LEVEL=5 %s\n", progname); 165 printf("\t\tEINA_LOG_LEVEL=5 %s\n", progname);
170} 166}
171
172/**
173 * @fn void version(char *progname)
174 * @brief Shows program revision
175 *
176 * @param progname (char *) Name of program
177 */
178void version(char *progname)
179{
180 printf("%s r%s\n", progname, REVISION);
181}
diff --git a/src/bin/send.c b/src/bin/send.c
index 9c40d70..872cf76 100644
--- a/src/bin/send.c
+++ b/src/bin/send.c
@@ -259,7 +259,10 @@ int send_toES(char *jsondata)
259 * 259 *
260 * @return Number of bytes received 260 * @return Number of bytes received
261 */ 261 */
262size_t send_fromES(void *ptr, size_t size, size_t nmemb, void *data) 262size_t send_fromES(void *ptr,
263 size_t size,
264 size_t nmemb,
265 void *data EINA_UNUSED)
263{ 266{
264 if( strncmp((char *)ptr, "{\"ok\":", 6) ) 267 if( strncmp((char *)ptr, "{\"ok\":", 6) )
265 EINA_LOG_DOM_ERR(einadom_send, "Indexing of JSON data failed"); 268 EINA_LOG_DOM_ERR(einadom_send, "Indexing of JSON data failed");