From a6d690cc6287a6c881aaae208a86a3a2fa0155d6 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Wed, 17 Jul 2024 11:31:46 +0000 Subject: [PATCH] Fix some gcc warnings --- usr.sbin/radiusd/radiusd_ipcp.c | 4 ++-- usr.sbin/radiusd/radiusd_local.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/radiusd/radiusd_ipcp.c b/usr.sbin/radiusd/radiusd_ipcp.c index 1d28ddf657b..d007067ecf0 100644 --- a/usr.sbin/radiusd/radiusd_ipcp.c +++ b/usr.sbin/radiusd/radiusd_ipcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd_ipcp.c,v 1.4 2024/07/12 15:54:52 yasuoka Exp $ */ +/* $OpenBSD: radiusd_ipcp.c,v 1.5 2024/07/17 11:31:46 yasuoka Exp $ */ /* * Copyright (c) 2024 Internet Initiative Japan Inc. @@ -972,7 +972,7 @@ ipcp_accounting_request(void *ctx, u_int q_id, const u_char *pkt, struct module_ipcp *self = ctx; struct assigned_ipv4 *assign, *assignt; char username[256], nas_id[256], buf[256], - buf1[80]; + buf1[384]; struct timespec dur; struct radiusd_ipcp_statistics stat; diff --git a/usr.sbin/radiusd/radiusd_local.h b/usr.sbin/radiusd/radiusd_local.h index b4ce9b15a9f..35a1da9e403 100644 --- a/usr.sbin/radiusd/radiusd_local.h +++ b/usr.sbin/radiusd/radiusd_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd_local.h,v 1.15 2024/07/14 15:31:49 yasuoka Exp $ */ +/* $OpenBSD: radiusd_local.h,v 1.16 2024/07/17 11:31:46 yasuoka Exp $ */ /* * Copyright (c) 2013 Internet Initiative Japan Inc. @@ -160,7 +160,7 @@ extern struct radiusd *radiusd_s; #ifdef RADIUSD_DEBUG #define RADIUSD_DBG(x) log_debug x #else -#define RADIUSD_DBG(x) +#define RADIUSD_DBG(x) ((void)0) #endif #define RADIUSD_ASSERT(_cond) \ do { \ -- 2.20.1