viced/callback.c: Ignore dump write errors harder
authorJeffrey Hutzelman <jhutz@cmu.edu>
Wed, 19 Jun 2013 03:12:46 +0000 (23:12 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 19 Jun 2013 16:54:59 +0000 (09:54 -0700)
commite16bef6136f83d0fc9a691051fc54a2ae5f573c9
tree1f90233d23e41a9ab0df6ee1df993382b0c4da94
parentad9343e1241c8c879aa5e426e6384aa346347464
viced/callback.c: Ignore dump write errors harder

When writing a callback state dump, test the return values from
write(2), but don't do anything based on the test.  This avoids
compiler warnings when building on Ubuntu 12.10, with gcc 4.7.2 and
eglibc 2.15-0ubuntu20.1.  This adds a new macro, WriteBytes(), which
handles writing a requested number of bytes to a file and ignoring
errors.

Change-Id: Icead6b25a290cea09a91184dc12b7449cfaaf6f7
Reviewed-on: http://gerrit.openafs.org/9991
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/viced/callback.c