mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
util: make the route arg to virNetDevIPRouteGetPrefix const
Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
1 parent
1468f995e7
commit
21c8588683
2 files changed
+2
-2
No files matched your search
@@ -776,7 +776,7 @@ virNetDevIPRouteGetAddress(virNetDevIPRoute *def)
|
||||
}
|
||||
|
||||
int
|
||||
virNetDevIPRouteGetPrefix(virNetDevIPRoute *def)
|
||||
virNetDevIPRouteGetPrefix(const virNetDevIPRoute *def)
|
||||
{
|
||||
int prefix = 0;
|
||||
virSocketAddr zero;
|
||||
|
||||
@@ -79,7 +79,7 @@ void virNetDevIPAddrFree(virNetDevIPAddr *ip);
|
||||
/* virNetDevIPRoute object */
|
||||
void virNetDevIPRouteFree(virNetDevIPRoute *def);
|
||||
virSocketAddr *virNetDevIPRouteGetAddress(virNetDevIPRoute *def);
|
||||
int virNetDevIPRouteGetPrefix(virNetDevIPRoute *def);
|
||||
int virNetDevIPRouteGetPrefix(const virNetDevIPRoute *def);
|
||||
unsigned int virNetDevIPRouteGetMetric(virNetDevIPRoute *def);
|
||||
virSocketAddr *virNetDevIPRouteGetGateway(virNetDevIPRoute *def);
|
||||
|
||||
|
||||
Reference in new issue
Block a user