]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/res_update.c
MdeModulePkg: Add DriverHealthManagerDxe driver.
[mirror_edk2.git] / StdLib / BsdSocketLib / res_update.c
index 1ad8a8719eabeb5db9e5c6418b14398b7a3db2b5..be0f5310928ab087e72cdc02988570444dd5fd08 100644 (file)
@@ -1,7 +1,13 @@
-#if !defined(lint) && !defined(SABER)\r
-static char rcsid[] = "$Id: res_update.c,v 1.1.1.1 2003/11/19 01:51:39 kyu3 Exp $";\r
-#endif /* not lint */\r
+/** @file\r
+  Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials are licensed and made available\r
+  under the terms and conditions of the BSD License which accompanies this\r
+  distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php.\r
 \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+**/\r
 /*\r
  * Copyright (c) 1996 by Internet Software Consortium.\r
  *\r
@@ -480,9 +486,9 @@ ans=%d, auth=%d, add=%d, rcode=%d\n",
             dname = zptr->z_ns[k].nsname;\r
             qtype = T_A;\r
             }\r
-\r
         } /* while */\r
     }\r
+    --ttl;  // Suppress the "Set but not used" warning/error for ttl.\r
 \r
     _res.options |= RES_DEBUG;\r
     for (zptr = zgrp_start; zptr; zptr = zptr->z_next) {\r
@@ -506,8 +512,7 @@ ans=%d, auth=%d, add=%d, rcode=%d\n",
         } else\r
             fprintf(stdout, "res_mkupdate: packet size = %d\n", n);\r
 \r
-        /*\r
-         * Override the list of NS records from res_init() with\r
+        /* Override the list of NS records from res_init() with\r
          * the authoritative nameservers for the zone being updated.\r
          * Sort primary to be the first in the list of nameservers.\r
          */\r