]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
check: fix SNMP test format error
authorVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 19:17:44 +0000 (20:17 +0100)
committerVincent Bernat <vincent@bernat.im>
Thu, 19 Feb 2015 19:17:44 +0000 (20:17 +0100)
tests/check_snmp.c

index f05cdce3b5dd3d379d751371f27a1e2ce6638811..08fd864fc2a07dd608c3b487a63d30ef1ce4da0c 100644 (file)
@@ -333,7 +333,8 @@ snmp_oidrepr(oid *name, size_t namelen)
        for (i = 0; i < namelen; i++) {
                /* Not very efficient... */
                char *newbuffer = NULL;
-               if (asprintf(&newbuffer, "%s.%lu", buffer[current]?buffer[current]:"", name[i]) == -1) {
+               if (asprintf(&newbuffer, "%s.%lu", buffer[current]?buffer[current]:"",
+                       (unsigned long)name[i]) == -1) {
                        free(buffer[current]);
                        buffer[current] = NULL;
                        return NULL;