]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/res_update.c
BaseTools: Enhance parse performance by optimize ValueExpressionEx
[mirror_edk2.git] / StdLib / BsdSocketLib / res_update.c
index a01d83203c2b77520bd2f78257497c9fe5731fb0..be0f5310928ab087e72cdc02988570444dd5fd08 100644 (file)
@@ -1,3 +1,13 @@
+/** @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
@@ -476,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
@@ -502,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