REST: nothing triggers rest
[oweals/gnunet.git] / src / gns / gnunet-service-gns_resolver.c
index 67960ef97d98cd1b17bacb7275a7eb3ceb2f0bb1..703a0f6522a3b2ead18df499d8d5fa1c2b128bf6 100644 (file)
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      Affero General Public License for more details.
-    
+
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
 */
 
 /**
@@ -375,7 +377,7 @@ struct GNS_ResolverHandle
    * and thus can deduct the LEHO from that transition.
    */
   char *leho;
-  
+
   /**
    * DLL of results we got from DNS.
    */
@@ -622,25 +624,6 @@ timeout_resolution (void *cls)
 }
 
 
-#if (defined WINDOWS) || (defined DARWIN)
-/* Don't have this on W32, here's a naive implementation
- * Was somehow removed on OS X ...  */
-static void *
-memrchr (const void *s,
-        int c,
-        size_t n)
-{
-  const unsigned char *ucs = s;
-  ssize_t i;
-
-  for (i = n - 1; i >= 0; i--)
-    if (c == (int) ucs[i])
-      return (void *) &ucs[i];
-  return NULL;
-}
-#endif
-
-
 /**
  * Get the next, rightmost label from the name that we are trying to resolve,
  * and update the resolution position accordingly.  Labels usually consist
@@ -2409,7 +2392,7 @@ handle_dht_response (void *cls,
                                                         co);
   GNUNET_CONTAINER_DLL_insert (co_head,
                               co_tail,
-                              co);  
+                              co);
 }