[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/kfontinst/kfontinst
From: Craig Drummond <craig () kde ! org>
Date: 2004-04-06 23:27:26
Message-ID: 20040406232726.7F8EF9A05 () office ! kde ! org
[Download RAW message or body]
CVS commit by craig:
Fix return values in mkdir
M +3 -4 Main.cpp 1.8
--- kdebase/kcontrol/kfontinst/kfontinst/Main.cpp #1.7:1.8
@@ -178,6 +178,5 @@ static int kfi_rmdir(const char *dir)
CMisc::removeAssociatedFiles(dir, true);
-
- int rv=rmdir(dir);
+ int rv=0==rmdir(dir) ? 0 : -2;
if(0==rv)
@@ -190,5 +189,5 @@ static int kfi_rmdir(const char *dir)
CGlobal::xcfg().removePath(ds);
CGlobal::xft().removeDir(ds);
- rv=CGlobal::xcfg().writeConfig() && CGlobal::xft().apply() ? 0 : -4;
+ rv=CGlobal::xcfg().writeConfig() && CGlobal::xft().apply() ? 0 : -3;
#ifdef HAVE_FONTCONFIG
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic