Module Name: src
Committed By: dholland
Date: Sun May 30 05:35:49 UTC 2010
Modified Files:
src/tests/fs/ffs: t_renamerace.c
Log Message:
Use PATH_MAX instead of MAXPATHLEN and include limits.h.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/fs/ffs/t_renamerace.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/fs/ffs/t_renamerace.c
diff -u src/tests/fs/ffs/t_renamerace.c:1.9 src/tests/fs/ffs/t_renamerace.c:1.10
--- src/tests/fs/ffs/t_renamerace.c:1.9 Wed Oct 14 18:22:50 2009
+++ src/tests/fs/ffs/t_renamerace.c Sun May 30 05:35:48 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: t_renamerace.c,v 1.9 2009/10/14 18:22:50 pooka Exp $ */
+/* $NetBSD: t_renamerace.c,v 1.10 2010/05/30 05:35:48 dholland Exp $ */
/*
* Modified for rump and atf from a program supplied
@@ -11,6 +11,7 @@
#include <atf-c.h>
#include <errno.h>
#include <fcntl.h>
+#include <limits.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
@@ -61,7 +62,7 @@
/* XXX: how to do cleanup if we use mkdtemp? */
#define IMAGENAME "/tmp/ffsatf.img"
-static char image[MAXPATHLEN];
+static char image[PATH_MAX];
#define FAKEBLK "/dev/sp00ka"