Index | Thread | Search

From:
Denis Fondras <denis@openbsd.org>
Subject:
Fix typo + non-used var in radiusd(8)
To:
tech@openbsd.org
Date:
Sun, 7 Sep 2025 16:49:26 +0200

Download raw body.

Thread
  • Denis Fondras:

    Fix typo + non-used var in radiusd(8)

Everything is in the subject.

Denis

Index: radiusd_file.c
===================================================================
RCS file: /cvs/src/usr.sbin/radiusd/radiusd_file.c,v
diff -u -p -r1.8 radiusd_file.c
--- radiusd_file.c	21 Nov 2024 13:43:10 -0000	1.8
+++ radiusd_file.c	7 Sep 2025 14:47:39 -0000
@@ -55,7 +55,6 @@ struct module_file {
 };
 
 struct module_file_userinfo {
-	struct in_addr		frame_ip_address;
 	char			password[0];
 };
 
Index: radiusd_standard.c
===================================================================
RCS file: /cvs/src/usr.sbin/radiusd/radiusd_standard.c,v
diff -u -p -r1.6 radiusd_standard.c
--- radiusd_standard.c	2 Jul 2024 00:33:51 -0000	1.6
+++ radiusd_standard.c	7 Sep 2025 14:47:39 -0000
@@ -135,7 +135,7 @@ module_standard_config_set(void *ctx, co
 
 	if (strcmp(name, "strip-atmark-realm") == 0) {
 		SYNTAX_ASSERT(argc == 1,
-		    "`strip-atmark-realm' must have only one argment");
+		    "`strip-atmark-realm' must have only one argument");
 		if (strcmp(argv[0], "true") == 0)
 			module->strip_atmark_realm = true;
 		else if (strcmp(argv[0], "false") == 0)
@@ -145,7 +145,7 @@ module_standard_config_set(void *ctx, co
 			    "`strip-atmark-realm' must `true' or `false'");
 	} else if (strcmp(name, "strip-nt-domain") == 0) {
 		SYNTAX_ASSERT(argc == 1,
-		    "`strip-nt-domain' must have only one argment");
+		    "`strip-nt-domain' must have only one argument");
 		if (strcmp(argv[0], "true") == 0)
 			module->strip_nt_domain = true;
 		else if (strcmp(argv[0], "false") == 0)
@@ -160,12 +160,12 @@ module_standard_config_set(void *ctx, co
 		if (strcmp(name, "remove-request-attribute") == 0) {
 			SYNTAX_ASSERT(argc == 1 || argc == 2,
 			    "`remove-request-attribute' must have one or two "
-			    "argment");
+			    "arguments");
 			attrs = &module->remove_reqattrs;
 		} else {
 			SYNTAX_ASSERT(argc == 1 || argc == 2,
 			    "`remove-response-attribute' must have one or two "
-			    "argment");
+			    "arguments");
 			attrs = &module->remove_resattrs;
 		}
 		if ((attr = calloc(1, sizeof(struct attr))) == NULL) {