From 1bd8aba6bb26ea9fb93eb6f01708f505cdaf3de5 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Sun, 7 Jun 2009 07:36:11 +0000 Subject: [PATCH] Change NAME_MAX to FILENAME_MAX to compile properly on Posix OS. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2219 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/coroparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/coroparse.c b/exec/coroparse.c index 51d03517..ad839032 100644 --- a/exec/coroparse.c +++ b/exec/coroparse.c @@ -214,7 +214,7 @@ static int read_uidgid_files_into_objdb( const char *dirname; DIR *dp; struct dirent *dirent; - char filename[PATH_MAX + NAME_MAX + 1]; + char filename[PATH_MAX + FILENAME_MAX + 1]; int res = 0; struct stat stat_buf;