X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsc.c;h=797f9a2e48b5532f7ffbdfb20ac5ac29e445736a;hb=2ba84b155219d5d18eed5ba4d929c12abdb88f14;hp=c99176874c31c5e0dee890abc73e9dee2feba342;hpb=d2789e43e814786b4d0e22715de16ab18b1cab98;p=yaz-moved-to-github.git diff --git a/src/sc.c b/src/sc.c index c991768..797f9a2 100644 --- a/src/sc.c +++ b/src/sc.c @@ -3,6 +3,11 @@ * See the file LICENSE for details. */ +/** + * \file sc.c + * \brief Windows Service Control + */ + #ifdef WIN32 #include #include @@ -36,7 +41,7 @@ struct sc_s { 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;