From a79e10157dc7a1c8a102bf88f236d325ecdd8d80 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 22 Mar 2013 05:34:10 +0000 Subject: code cleanup: use NULL rather then 0 for pointers, and make vars static where possible. also found unintentionally defined enum/struct variables that where only meant to be defining the type. --- source/blender/blenlib/intern/fileops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/intern/fileops.c') diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 29280c36222..8b3cfd07ee9 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -423,7 +423,7 @@ enum { /* error occured in callback and recursive walking should stop immediately */ RecursiveOp_Callback_Error = 2 -} recuresiveOp_Callback_Result; +}; typedef int (*RecursiveOp_Callback)(const char *from, const char *to); @@ -498,7 +498,7 @@ static int recursive_operation(const char *startfrom, const char *startto, break; } - n = scandir(startfrom, &dirlist, 0, alphasort); + n = scandir(startfrom, &dirlist, NULL, alphasort); if (n < 0) { /* error opening directory for listing */ perror("scandir"); -- cgit v1.2.3