]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_snmp.c
*: Do not cast to the same type
[mirror_frr.git] / bgpd / bgp_snmp.c
index 28eea46a5a879b228f46559dfacf911e1f7f1737..e7aa02863ceaff0c4dca41038bc3883b340eb53d 100644 (file)
@@ -330,7 +330,7 @@ static uint8_t *bgpVersion(struct variable *v, oid name[], size_t *length,
 
        /* Return octet string length 1. */
        *var_len = 1;
-       return (uint8_t *)&version;
+       return &version;
 }
 
 static uint8_t *bgpLocalAs(struct variable *v, oid name[], size_t *length,