]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: virnetserver: Move virNetServerCheckLimits which is static up in the file
authorErik Skultety <eskultet@redhat.com>
Wed, 20 Jul 2016 08:17:19 +0000 (10:17 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 2 Aug 2016 12:51:13 +0000 (14:51 +0200)
commit17bc333411d290c0cc985664a388ff561c1a72f1
treeddd44da15c47c17638f243e62043299af307bba1
parent2e5417bc466b7a12d72136cdd5f406301ec101d0
rpc: virnetserver: Move virNetServerCheckLimits which is static up in the file

Since virNetServerAddClient checks for the limits in order to temporarily
suspend the services, thus not accepting any more clients, there is no reason
why virNetServerCheckLimits, which is only responsible for re-enabling
previously disabled services according to the limits, could not do both. To be
able to do that however, it needs to be moved up in the file since it's static
(and because it's just a helper and there's only one caller it should remain
 static).

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/rpc/virnetserver.c