Merge branch 'master' into 1.1
[tinc] / src / protocol.c
index cae3a0f..50f6fe7 100644 (file)
@@ -73,7 +73,7 @@ bool send_request(connection_t *c, const char *format, ...) {
 
        cp();
 
-       /* Use vsnprintf instead of vasprintf: faster, no memory
+       /* Use vsnprintf instead of vxasprintf: faster, no memory
           fragmentation, cleanup is automatic, and there is a limit on the
           input buffer anyway */
 
@@ -196,7 +196,7 @@ bool seen_request(char *request) {
                ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
                return true;
        } else {
-               new = xmalloc(sizeof(*new));
+               new = xmalloc(sizeof *new);
                new->request = xstrdup(request);
                new->firstseen = time(NULL);
                splay_insert(past_request_tree, new);