]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
update copyright notice
authorAutomatic Updater <source@isc.org>
Tue, 23 Jun 2009 23:46:03 +0000 (23:46 +0000)
committerAutomatic Updater <source@isc.org>
Tue, 23 Jun 2009 23:46:03 +0000 (23:46 +0000)
bin/named/win32/ntservice.c

index 6b106ac320da9a7770e0ebb530fa6b7dcee9c01e..9d05dee290dd35a511deaaee7238a692dd8ed0d3 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2009  Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 1999-2002  Internet Software Consortium.
  *
- * Permission to use, copy, modify, and distribute this software for any
+ * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
  * copyright notice and this permission notice appear in all copies.
  *
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: ntservice.c,v 1.8.18.1 2009/06/23 07:49:14 marka Exp $ */
+/* $Id: ntservice.c,v 1.8.18.2 2009/06/23 23:46:03 tbox Exp $ */
 
 #include <config.h>
 #include <stdio.h>
@@ -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);