aboutgitcodebugslistschat
path: root/log.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-08-06 11:21:49 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-08-06 15:01:46 +0200
commit031df332e98d507ad153fc54ea8c4b7109b7dabf (patch)
treeeaf18767ee306fc7ccea9ea715a852aeaed5d9cd /log.c
parente877f905e5fc5900c2c8dd9378e39705b21aec82 (diff)
downloadpasst-031df332e98d507ad153fc54ea8c4b7109b7dabf.tar
passt-031df332e98d507ad153fc54ea8c4b7109b7dabf.tar.gz
passt-031df332e98d507ad153fc54ea8c4b7109b7dabf.tar.bz2
passt-031df332e98d507ad153fc54ea8c4b7109b7dabf.tar.lz
passt-031df332e98d507ad153fc54ea8c4b7109b7dabf.tar.xz
passt-031df332e98d507ad153fc54ea8c4b7109b7dabf.tar.zst
passt-031df332e98d507ad153fc54ea8c4b7109b7dabf.zip
util: Use unsigned (size_t) value for iov length
The "correct" type for the length of an IOV is unclear: writev() and readv() use an int, but sendmsg() and recvmsg() use a size_t. Using the unsigned size_t has some advantages, though, and it makes more sense for the case of write_remainder. Using size_t throughout here means we don't have a signed vs. unsigned comparison, and we don't have to deal with the case of iov_skip_bytes() returning a value which becomes negative when assigned to an integer. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'log.c')
0 files changed, 0 insertions, 0 deletions