[boinc] 02/04: removed unnecessary parts in filesys_error_message.patch

Guo Yixuan yixuan-guest at moszumanska.debian.org
Tue Jun 24 03:12:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

yixuan-guest pushed a commit to branch master
in repository boinc.

commit a4dc8e66f6dded86fb9b660fedcfd79c7eea6f58
Author: Guo Yixuan <culu.gyx at gmail.com>
Date:   Mon Jun 23 23:00:23 2014 -0400

    removed unnecessary parts in filesys_error_message.patch
---
 debian/patches/filesys_error_message.patch | 33 ++----------------------------
 1 file changed, 2 insertions(+), 31 deletions(-)

diff --git a/debian/patches/filesys_error_message.patch b/debian/patches/filesys_error_message.patch
index 1bed45f..5e878a8 100644
--- a/debian/patches/filesys_error_message.patch
+++ b/debian/patches/filesys_error_message.patch
@@ -1,6 +1,6 @@
 --- a/lib/filesys.cpp
 +++ b/lib/filesys.cpp
-@@ -145,7 +145,9 @@
+@@ -145,7 +145,9 @@ DIRREF dir_open(const char* const p) {
  #else
      dirp = opendir(p);
      if (!dirp) {
@@ -11,16 +11,7 @@
          return NULL;
      }
  #endif
-@@ -592,7 +594,7 @@
- #endif
- }
- 
--static int boinc_rename_aux(const char* old, const char* newf) {
-+static int boinc_rename_aux(const char* const old, const char* const newf) {
- #ifdef _WIN32
-     if (MoveFileExA(old, newf, MOVEFILE_REPLACE_EXISTING|MOVEFILE_WRITE_THROUGH)) return 0;
-     return GetLastError();
-@@ -602,7 +604,7 @@
+@@ -602,7 +604,7 @@ static int boinc_rename_aux(const char*
      //
      int retval = rename(old, newf);
      if (retval) {
@@ -29,23 +20,3 @@
          sprintf(buf, "mv \"%s\" \"%s\"", old, newf);
          retval = system(buf);
      }
-@@ -611,7 +613,7 @@
- #endif
- }
- 
--int boinc_rename(const char* old, const char* newf) {
-+int boinc_rename(const char* const old, const char* const newf) {
-     int retval=0;
- 
-     retval = boinc_rename_aux(old, newf);
---- a/lib/filesys.h
-+++ b/lib/filesys.h
-@@ -47,7 +47,7 @@
-   extern int boinc_touch_file(const char* const path);
-   extern FILE* boinc_fopen(const char* const path, const char* mode);
-   extern int boinc_copy(const char* orig, const char* newf);
--  extern int boinc_rename(const char* old, const char* newf);
-+  extern int boinc_rename(const char* const old, const char* const newf);
-   extern int boinc_mkdir(const char* const);
- #ifdef _WIN32
-   extern int boinc_allocate_file(const char* const, double size);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/boinc.git



More information about the pkg-boinc-commits mailing list