From 0382130cdce988c61d54a225f7aa0be9e2b3429b Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Tue, 23 Jun 2009 23:47:44 +0000 Subject: [PATCH] update copyright notice --- bin/named/win32/ntservice.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/named/win32/ntservice.c b/bin/named/win32/ntservice.c index a0da37f719..0abd30215d 100644 --- a/bin/named/win32/ntservice.c +++ b/bin/named/win32/ntservice.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2006, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2002 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ntservice.c,v 1.13 2009/06/23 07:43:48 marka Exp $ */ +/* $Id: ntservice.c,v 1.14 2009/06/23 23:47:44 tbox Exp $ */ #include #include @@ -47,7 +47,7 @@ int main(int, char *[], char *[]); /* From ns_main.c */ #pragma comment(linker, "/entry:bindmain") /* - * This is the entry point for the executable + * This is the entry point for the executable * We can now call main() explicitly or via StartServiceCtrlDispatcher() * as we need to. */ @@ -132,7 +132,7 @@ BOOL ntservice_isservice() { return(!foreground); } -/* +/* * ServiceControl(): Handles requests from the SCM and passes them on * to named. */ @@ -140,17 +140,17 @@ void ServiceControl(DWORD dwCtrlCode) { /* Handle the requested control code */ switch(dwCtrlCode) { - case SERVICE_CONTROL_INTERROGATE: + case SERVICE_CONTROL_INTERROGATE: UpdateSCM(0); break; - case SERVICE_CONTROL_SHUTDOWN: - case SERVICE_CONTROL_STOP: + case SERVICE_CONTROL_SHUTDOWN: + case SERVICE_CONTROL_STOP: ns_server_flushonshutdown(ns_g_server, ISC_TRUE); isc_app_shutdown(); UpdateSCM(SERVICE_STOPPED); break; - default: + default: break; } } @@ -188,7 +188,7 @@ void UpdateSCM(DWORD state) { * get argv, argc, envp. */ -typedef struct +typedef struct { int newmode; } _startupinfo; @@ -221,13 +221,13 @@ extern _CRTIMP char **__initenv; void GetArgs(int *argc, char ***argv, char ***envp) { _startupinfo startinfo; - + /* * Set the app type to Console (check CRT/SRC/INTERNAL.H: * \#define _CONSOLE_APP 1) */ __set_app_type(1); - + /* Mark this module as an EXE file */ __onexitbegin = __onexitend = (_PVFV *)(-1);