]> git.tuebingen.mpg.de Git - paraslash.git/commit
Let afs_event() return int.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 9 Apr 2015 12:51:49 +0000 (12:51 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 12 Aug 2015 21:23:48 +0000 (23:23 +0200)
commitfe282244d61b83eb1f285259dd1d55992a96288f
tree6fbb40dc5d58e239f47542d6e7d3eebce49c6ede
parent4ed1b8bcba134e2656eaff91053397064c538bd5
Let afs_event() return int.

It is usually a critical error if an afs event handler returns an
error. Currently we only print a log message an continue in this
case. The callers of afs_event() which trigger the event have no way
to tell that something went wrong, since this function returns void.

By returning int instead of void the callers can abort in the error
case. Most of the callers are afs callbacks. These can propagate the
error code to the command handler process, which will translate the
error code into a string and send it to the client.  All callbacks
are changed in this way.
afs.c
afs.h
aft.c
attribute.c
blob.c