Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/ffs Use PATH_MAX instead of MAXPATHLEN and include ...
details: https://anonhg.NetBSD.org/src/rev/29ba81422fa1
branches: trunk
changeset: 755268:29ba81422fa1
user: dholland <dholland%NetBSD.org@localhost>
date: Sun May 30 05:35:48 2010 +0000
description:
Use PATH_MAX instead of MAXPATHLEN and include limits.h.
diffstat:
tests/fs/ffs/t_renamerace.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 02ee977d8ad4 -r 29ba81422fa1 tests/fs/ffs/t_renamerace.c
--- a/tests/fs/ffs/t_renamerace.c Sun May 30 04:38:03 2010 +0000
+++ b/tests/fs/ffs/t_renamerace.c Sun May 30 05:35:48 2010 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index