]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Fix spelling errors.
[meshlink] / src / route.c
index f7a728dc80278cac5ed62f2912f6b163428a534c..91bd2f8227e158539e5798c6aaef535170f58f5c 100644 (file)
@@ -45,14 +45,14 @@ void route(meshlink_handle_t *mesh, node_t *source, vpn_packet_t *packet) {
        owner = lookup_node(mesh, (char *)hdr->destination);
        logger(mesh, MESHLINK_DEBUG, "Routing packet from \"%s\" to \"%s\"\n", hdr->source, hdr->destination);
 
-       //Check Lenght
+       //Check Length
        if(!checklength(source, packet, sizeof(*hdr))) {
                return;
        }
 
        if(owner == NULL) {
                //Lookup failed
-               logger(mesh, MESHLINK_WARNING, "Cant lookup the owner of a packet in the route() function. This should never happen!\n");
+               logger(mesh, MESHLINK_WARNING, "Can't lookup the owner of a packet in the route() function. This should never happen!\n");
                logger(mesh, MESHLINK_WARNING, "Destination was: %s\n", hdr->destination);
                return;
        }