mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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>
This commit is contained in:
parent
a4878a5e26
commit
689fb56fca
@ -138,7 +138,7 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
|
||||
}
|
||||
|
||||
afile->offset = 0;
|
||||
afile->proc = (int (*)())0;
|
||||
afile->proc = NULL;
|
||||
return (void *)afile;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user