Skip to content

Commit

Permalink
The bool keyword becomes a strict data type with gcc-15, so we need…
Browse files Browse the repository at this point in the history
… to use a different variable name.
  • Loading branch information
Castaglia committed Dec 11, 2024
1 parent 9426cd4 commit 73ef0e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/proxy/ssh/msg.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* ProFTPD - mod_proxy SSH message format
* Copyright (c) 2021-2022 TJ Saunders
* Copyright (c) 2021-2024 TJ Saunders
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -355,8 +355,8 @@ uint32_t proxy_ssh_msg_write_byte(unsigned char **buf, uint32_t *buflen,
}

uint32_t proxy_ssh_msg_write_bool(unsigned char **buf, uint32_t *buflen,
unsigned char bool) {
return proxy_ssh_msg_write_byte(buf, buflen, bool == 0 ? 0 : 1);
unsigned char b) {
return proxy_ssh_msg_write_byte(buf, buflen, b == 0 ? 0 : 1);
}

uint32_t proxy_ssh_msg_write_data(unsigned char **buf, uint32_t *buflen,
Expand Down

0 comments on commit 73ef0e6

Please sign in to comment.