Don't hardcode values that shouldn't be hardcoded
authorWouter Verhelst <w@uter.be>
Sat, 13 Feb 2016 18:26:29 +0000 (19:26 +0100)
committerWouter Verhelst <w@uter.be>
Sat, 13 Feb 2016 18:26:29 +0000 (19:26 +0100)
commitab8705b544f7f19089eafc5fa3444068c53a36cf
tree680717b7846b98317212026807b4b420e8196462
parent6a4321a81bb995e807a4ed084c1a08ecee325580
Don't hardcode values that shouldn't be hardcoded

The size of addr.sun_path isn't defined. It happens to be 107 bytes on
most Linux systems, but this is not the correct value on kFreeBSD, where
it happens to be 104 bytes instead.

Rather than hardcoding this value, use the sizeof operator to figure out
the size of the sun_path member at compile time.
tests/run/nbd-tester-client.c