afs: Use literal NULL for NULL function pointer 02/14902/4
authorCheyenne Wills <cwills@sinenomine.net>
Fri, 18 Feb 2022 01:32:41 +0000 (18:32 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 9 Jun 2022 03:48:41 +0000 (23:48 -0400)
commit689fb56fca57274e73c8394e8588650449565cd8
tree85ba0049329d3c3113541f6663f2798989342294
parenta4878a5e26b9997e40a3b197cea5f8c3b24f2539
afs: Use literal NULL for NULL function pointer

The clang compiler complains that this function pointer cast is not a
prototype.

   .../osi_file.c:141:27: error: this function declaration is not a
      prototype [-Werror,-Wstrict-prototypes]
    afile->proc = (int (*)())0;
                          ^
                           void

Just use NULL instead of trying to create a cast to 0.

Change-Id: I3adb22cb38db8c854d9313ec9eb2b008a4e9a9db
Reviewed-on: https://gerrit.openafs.org/14902
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/LINUX/osi_file.c