From 2fb8715bdc3f0b616b8d996ad3eb72cfa3c1be55 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Fri, 29 May 2009 00:50:28 +0000 Subject: [PATCH] Fix compilation with Turbo C. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1411 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/fatfs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/fatfs.c b/kernel/fatfs.c index 3aab497..3961490 100644 --- a/kernel/fatfs.c +++ b/kernel/fatfs.c @@ -297,13 +297,9 @@ f_node_ptr split_path(char * path, char * fcbname, f_node_ptr fnp) /* checks whether directory part of path exists */ BOOL dir_exists(char * path) { - REG f_node_ptr fnp; char fcbname[FNAME_SIZE + FEXT_SIZE]; - if ((fnp = split_path(path, fcbname, &fnode[0])) == NULL) - return FALSE; - - return TRUE; + return split_path(path, fcbname, &fnode[0]) != NULL; } BOOL fcbmatch(const char *fcbname1, const char *fcbname2)