projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f27a81
)
added static's
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 6 Sep 2012 21:00:04 +0000
(21:00 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 6 Sep 2012 21:00:04 +0000
(21:00 +0000)
src/server/server.c
patch
|
blob
|
history
diff --git
a/src/server/server.c
b/src/server/server.c
index
90b3796
..
67d268c
100644
(file)
--- a/
src/server/server.c
+++ b/
src/server/server.c
@@
-76,7
+76,7
@@
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static int server_stop_requested;
static int server_stop_requested;
-void print_version()
+
static
void print_version()
{
printf("psensor-server %s\n", VERSION);
printf(_("Copyright (C) %s jeanfi@gmail.com\n"
{
printf("psensor-server %s\n", VERSION);
printf(_("Copyright (C) %s jeanfi@gmail.com\n"
@@
-87,7
+87,7
@@
void print_version()
"2010-2012");
}
"2010-2012");
}
-void print_help()
+
static
void print_help()
{
printf(_("Usage: %s [OPTION]...\n"), program_name);
{
printf(_("Usage: %s [OPTION]...\n"), program_name);
@@
-150,7
+150,7
@@
file_reader(void *cls, uint64_t pos, char *buf, int max)
return fread(buf, 1, max, file);
}
return fread(buf, 1, max, file);
}
-struct MHD_Response *
+st
atic st
ruct MHD_Response *
create_response_api(const char *nurl,
const char *method,
unsigned int *rp_code)
create_response_api(const char *nurl,
const char *method,
unsigned int *rp_code)
@@
-199,7
+199,7
@@
create_response_api(const char *nurl,
return NULL;
}
return NULL;
}
-struct MHD_Response *
+st
atic st
ruct MHD_Response *
create_response_file(const char *nurl,
const char *method,
unsigned int *rp_code,
create_response_file(const char *nurl,
const char *method,
unsigned int *rp_code,
@@
-238,7
+238,7
@@
create_response_file(const char *nurl,
return NULL;
}
return NULL;
}
-struct MHD_Response *
+st
atic st
ruct MHD_Response *
create_response(const char *nurl, const char *method, unsigned int *rp_code)
{
struct MHD_Response *resp = NULL;
create_response(const char *nurl, const char *method, unsigned int *rp_code)
{
struct MHD_Response *resp = NULL;