From 689fb56fca57274e73c8394e8588650449565cd8 Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Thu, 17 Feb 2022 18:32:41 -0700 Subject: [PATCH] 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 Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk --- src/afs/LINUX/osi_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_file.c b/src/afs/LINUX/osi_file.c index b8bdce7e7e..999876e7e5 100644 --- a/src/afs/LINUX/osi_file.c +++ b/src/afs/LINUX/osi_file.c @@ -138,7 +138,7 @@ osi_UFSOpen(afs_dcache_id_t *ainode) } afile->offset = 0; - afile->proc = (int (*)())0; + afile->proc = NULL; return (void *)afile; }