Skip to contentSkip to conversation

x86_64: use NULL for pointer

PATCH New Randy Dunlap 1 participant 1 message Jun 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64: use NULL for pointer

From: Randy Dunlap <[email protected]>

Use NULL instead of 0 for pointer:
arch/x86_64/kernel/vsyscall.c:183:21: warning: Using plain integer as NULL pointer

---
 arch/x86_64/kernel/vsyscall.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86_64/kernel/vsyscall.c +1 -1
@@ -180,7 +180,7 @@ time_t __vsyscall(1) vtime(time_t *t)
 	if (unlikely(!__vsyscall_gtod_data.sysctl_enabled))
 		return time_syscall(t);
 
-	vgettimeofday(&tv, 0);
+	vgettimeofday(&tv, NULL);
 	result = tv.tv_sec;
 	if (t)
 		*t = result;