|
1 | 1 | // This file is part of BOINC. |
2 | | -// https://boinc.berkeley.edu |
3 | | -// Copyright (C) 2026 University of California |
| 2 | +// http://boinc.berkeley.edu |
| 3 | +// Copyright (C) 2008 University of California |
4 | 4 | // |
5 | 5 | // BOINC is free software; you can redistribute it and/or modify it |
6 | 6 | // under the terms of the GNU Lesser General Public License |
@@ -252,10 +252,8 @@ static std::vector<UPLOAD_FILE_STATUS> upload_file_status; |
252 | 252 |
|
253 | 253 | static int resume_activities(); |
254 | 254 | static void boinc_exit(int); |
255 | | -#ifndef _WIN32 |
256 | 255 | static void block_sigalrm(); |
257 | 256 | static int start_worker_signals(); |
258 | | -#endif |
259 | 257 |
|
260 | 258 | char* boinc_msg_prefix(char* sbuf, int len) { |
261 | 259 | #ifdef ANDROID |
@@ -290,7 +288,7 @@ char* boinc_msg_prefix(char* sbuf, int len) { |
290 | 288 | return sbuf; |
291 | 289 | } |
292 | 290 | #ifdef _WIN32 |
293 | | - n = _snprintf(sbuf, len, "%s (%ld):", buf, GetCurrentProcessId()); |
| 291 | + n = _snprintf(sbuf, len, "%s (%d):", buf, GetCurrentProcessId()); |
294 | 292 | #else |
295 | 293 | n = snprintf(sbuf, len, "%s (%d):", buf, getpid()); |
296 | 294 | #endif |
@@ -1213,7 +1211,7 @@ static void handle_upload_file_status() { |
1213 | 1211 | int status; |
1214 | 1212 | const size_t prefix_len = strlen(UPLOAD_FILE_STATUS_PREFIX); |
1215 | 1213 |
|
1216 | | - relative_to_absolute("", path, MAXPATHLEN); |
| 1214 | + relative_to_absolute("", path); |
1217 | 1215 | DirScanner dirscan(path); |
1218 | 1216 | while (dirscan.scan(filename)) { |
1219 | 1217 | strlcpy(buf, filename.c_str(), sizeof(buf)); |
@@ -1729,7 +1727,7 @@ int boinc_receive_trickle_down(char* buf, int len) { |
1729 | 1727 | handle_trickle_downs = true; |
1730 | 1728 |
|
1731 | 1729 | if (have_trickle_down) { |
1732 | | - relative_to_absolute("", path, MAXPATHLEN); |
| 1730 | + relative_to_absolute("", path); |
1733 | 1731 | DirScanner dirscan(path); |
1734 | 1732 | while (dirscan.scan(filename)) { |
1735 | 1733 | if (strstr(filename.c_str(), "trickle_down")) { |
|
0 commit comments