diff options
Diffstat (limited to 'src/util/proc_compat.c')
-rw-r--r-- | src/util/proc_compat.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/proc_compat.c b/src/util/proc_compat.c index 7abea446a..3d73d7889 100644 --- a/src/util/proc_compat.c +++ b/src/util/proc_compat.c | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | #include "platform.h" | 20 | #include "platform.h" |
21 | 21 | ||
22 | /** | 22 | /** |
@@ -35,16 +35,16 @@ | |||
35 | * @param n search character limit | 35 | * @param n search character limit |
36 | */ | 36 | */ |
37 | void* | 37 | void* |
38 | GN_memrchr_ (const void *s, | 38 | GN_memrchr_(const void *s, |
39 | int c, | 39 | int c, |
40 | size_t n) | 40 | size_t n) |
41 | { | 41 | { |
42 | const unsigned char *ucs = s; | 42 | const unsigned char *ucs = s; |
43 | ssize_t i; | 43 | ssize_t i; |
44 | 44 | ||
45 | for (i = n - 1; i >= 0; i--) | 45 | for (i = n - 1; i >= 0; i--) |
46 | if (c == (int) ucs[i]) | 46 | if (c == (int)ucs[i]) |
47 | return (void *) &ucs[i]; | 47 | return (void *)&ucs[i]; |
48 | return NULL; | 48 | return NULL; |
49 | } | 49 | } |
50 | 50 | ||