diff options
author | soloturn | 2020-05-31 12:42:33 +0200 |
---|---|---|
committer | soloturn | 2020-06-01 09:26:28 +0200 |
commit | 3736f2f2fc081da9e770eec341b4993638a7f400 (patch) | |
tree | 60213c6515d6d4a21dabb098ea2cafe02fa21d03 /gcc-7.patch | |
parent | 23ccd2242828f38449bb40ec18e400095e68d1b0 (diff) | |
download | aur-3736f2f2fc081da9e770eec341b4993638a7f400.tar.gz |
upgrade to xmoto-0.6.0
Diffstat (limited to 'gcc-7.patch')
-rw-r--r-- | gcc-7.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/gcc-7.patch b/gcc-7.patch deleted file mode 100644 index 4226b32e8221..000000000000 --- a/gcc-7.patch +++ /dev/null @@ -1,51 +0,0 @@ -Description: Avoid comparing pointers with booleans -Author: Stephen Kitt <skitt@debian.org> -Forwarded: https://github.com/xmoto/xmoto/pull/16 - ---- a/src/WWW.cpp -+++ b/src/WWW.cpp -@@ -206,7 +206,7 @@ - std::string v_www_agent = WWW_AGENT; - - /* open the file */ -- if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) { -+ if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == NULL) { - throw Exception("error : unable to open output file " - + v_local_file_tmp); - } -@@ -320,7 +320,7 @@ - LogInfo(std::string("Uploading replay " + p_replayFilename).c_str()); - - /* open the file */ -- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { -+ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { - throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("UR")); - } - -@@ -478,7 +478,7 @@ - LogInfo("Sending vote"); - - /* open the file */ -- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { -+ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { - throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SV")); - } - -@@ -562,7 +562,7 @@ - LogInfo("Sending report"); - - /* open the file */ -- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { -+ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { - throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SR")); - } - -@@ -677,7 +677,7 @@ - LogInfo(std::string("Uploading dbsync " + p_dbSyncFilename + " to " + p_url_to_transfert).c_str()); - - /* open the file */ -- if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) { -+ if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == NULL) { - throw Exception("error : unable to open output file " + p_answerFile); - } - |