Skip to content

Commit 6cbb217

Browse files
authored
Merge pull request #2733 from arbruijn/gcc15-pty-tuntap
fix build with gcc-15 for pty and tuntap plugins
2 parents 6bd250d + 4953965 commit 6cbb217

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/pty/pty.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static void uwsgi_pty_init() {
259259

260260
}
261261

262-
static void uwsgi_pty_winch() {
262+
static void uwsgi_pty_winch(int sig) {
263263
// 2 uwsgi packets
264264
char uwsgi_pkt[8];
265265
#ifdef TIOCGWINSZ
@@ -309,7 +309,7 @@ static int uwsgi_pty_client() {
309309
if (upty.uremote) {
310310
signal(SIGWINCH, uwsgi_pty_winch);
311311
// send current terminal size
312-
uwsgi_pty_winch();
312+
uwsgi_pty_winch(SIGWINCH);
313313
}
314314

315315
upty.queue = event_queue_init();

plugins/tuntap/tuntap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ void uwsgi_tuntap_router_loop(int id, void *arg) {
409409
}
410410
}
411411

412-
static void uwsgi_tuntap_router() {
412+
static void uwsgi_tuntap_router(int (*start)(void *), char **argv) {
413413

414414
if (!utt.routers) return;
415415

0 commit comments

Comments
 (0)