]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemonClientStream: Use unsigned int to store stream @serial
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 Mar 2016 15:33:14 +0000 (17:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Apr 2016 14:29:41 +0000 (16:29 +0200)
commit8def0a22a3ed78362669957edfbbfac8a08bd7f9
treeea2fc4e96c0088c81de01656cffd8c941d2e4964
parent3883a2978252a80ffdde8bcc41e227ad756625fa
daemonClientStream: Use unsigned int to store stream @serial

The stream serial number is the serial number of the RPC call
that initiated a data transfer. And as such can never be
negative. Moreover, when looking up internal state for a stream,
the serial numbers are compared. But hey, the serial number in
message header is unsigned too!

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
daemon/stream.c
src/rpc/virnetserverprogram.c
src/rpc/virnetserverprogram.h