You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by gb...@apache.org on 2015/05/04 17:56:54 UTC

incubator-corinthia git commit: Change variable 'success' to 'ok' in DFGetFile()

Repository: incubator-corinthia
Updated Branches:
  refs/heads/master ac0e900ac -> 64f82df25


Change variable 'success' to 'ok' in DFGetFile()

* DocFormats/api/src/Operations.c


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/64f82df2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/64f82df2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/64f82df2

Branch: refs/heads/master
Commit: 64f82df25e4b5cc11f925e9916cf6bc3b0c567f8
Parents: ac0e900
Author: Gabriela Gibson <gb...@apache.org>
Authored: Mon May 4 16:57:00 2015 +0100
Committer: Gabriela Gibson <gb...@apache.org>
Committed: Mon May 4 16:57:00 2015 +0100

----------------------------------------------------------------------
 DocFormats/api/src/Operations.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/64f82df2/DocFormats/api/src/Operations.c
----------------------------------------------------------------------
diff --git a/DocFormats/api/src/Operations.c b/DocFormats/api/src/Operations.c
index addc1c4..f605ad8 100644
--- a/DocFormats/api/src/Operations.c
+++ b/DocFormats/api/src/Operations.c
@@ -356,13 +356,13 @@ int DFGetFile(const char *concreteFilename,
               const char *abstractFilename,
               DFError **error)
 {
-    int success = 0;
+    int ok = 0;
 
     if (DFFileExists(abstractFilename)) {
         DFErrorFormat(error,
                       "%s: File already exists",
                       abstractFilename);
-        return success;
+        return ok;
     }
 
     char *abstractPath = DFPathDirName(abstractFilename);
@@ -398,14 +398,14 @@ int DFGetFile(const char *concreteFilename,
         goto end;
     }
 
-    success = 1;
+    ok = 1;
 
 end:
     free(abstractPath);
     DFStorageRelease(abstractStorage);
     DFConcreteDocumentRelease(concreteDoc);
     DFAbstractDocumentRelease(abstractDoc);
-    return success;
+    return ok;
 }
 
 int DFPutFile(const char *concreteFilename,