projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Choose IPV6 over IPV4 addrany addresses (bug #2350).
[yaz-moved-to-github.git]
/
src
/
sc.c
diff --git
a/src/sc.c
b/src/sc.c
index
c991768
..
797f9a2
100644
(file)
--- a/
src/sc.c
+++ b/
src/sc.c
@@
-3,6
+3,11
@@
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
+/**
+ * \file sc.c
+ * \brief Windows Service Control
+ */
+
#ifdef WIN32
#include <windows.h>
#include <tchar.h>
#ifdef WIN32
#include <windows.h>
#include <tchar.h>
@@
-36,7
+41,7
@@
struct sc_s {
yaz_sc_t yaz_sc_create(const char *service_name, const char *display_name)
{
yaz_sc_t yaz_sc_create(const char *service_name, const char *display_name)
{
- yaz_sc_t s = xmalloc(sizeof(*s));
+ yaz_sc_t s = (yaz_sc_t) xmalloc(sizeof(*s));
s->service_name = service_name ? xstrdup(service_name) : 0;
s->display_name = display_name ? xstrdup(display_name) : 0;
s->service_name = service_name ? xstrdup(service_name) : 0;
s->display_name = display_name ? xstrdup(display_name) : 0;