From: op Date: Mon, 17 Apr 2023 10:11:30 +0000 (+0000) Subject: fix a few dobeep_msgs() calls: a space is already added between the arguments X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d7784223724e0d497dcfa79d51bd3e490224f2be;p=openbsd fix a few dobeep_msgs() calls: a space is already added between the arguments ok tb@ --- diff --git a/usr.bin/mg/extend.c b/usr.bin/mg/extend.c index e5ab9aea9a3..e4a539de6ca 100644 --- a/usr.bin/mg/extend.c +++ b/usr.bin/mg/extend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extend.c,v 1.79 2023/03/30 22:56:47 op Exp $ */ +/* $OpenBSD: extend.c,v 1.80 2023/04/17 10:11:30 op Exp $ */ /* This file is in the public domain. */ /* @@ -493,7 +493,7 @@ redefine_key(int f, int n) return (FALSE); (void)strlcat(buf, tmp, sizeof(buf)); if ((mp = name_map(tmp)) == NULL) - return (dobeep_msgs("Unknown map ", tmp)); + return (dobeep_msgs("Unknown map", tmp)); if (strlcat(buf, "key: ", sizeof(buf)) >= sizeof(buf)) return (FALSE); @@ -720,7 +720,7 @@ excline(char *line, int llen, int lnum) n = (int)nl; } if ((fp = name_function(funcp)) == NULL) - return (dobeep_msgs("Unknown function: ", funcp)); + return (dobeep_msgs("Unknown function:", funcp)); if (fp == bindtokey || fp == unbindtokey) { bind = BINDARG; @@ -847,7 +847,7 @@ excline(char *line, int llen, int lnum) case BINDNEXT: lp->l_text[lp->l_used] = '\0'; if ((curmap = name_map(lp->l_text)) == NULL) { - (void)dobeep_msgs("No such mode: ", lp->l_text); + (void)dobeep_msgs("No such mode:", lp->l_text); status = FALSE; free(lp); goto cleanup; diff --git a/usr.bin/mg/interpreter.c b/usr.bin/mg/interpreter.c index 47d839cde0b..d73e3d64339 100644 --- a/usr.bin/mg/interpreter.c +++ b/usr.bin/mg/interpreter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interpreter.c,v 1.34 2022/01/28 06:18:41 guenther Exp $ */ +/* $OpenBSD: interpreter.c,v 1.35 2023/04/17 10:11:30 op Exp $ */ /* * This file is in the public domain. * @@ -406,7 +406,7 @@ parsexp(char *begp, const char *par1, const char *par2, int blkid, int expctr, * If no extant mg command found, just return. */ if ((funcp = name_function(cmdp)) == NULL) - return (dobeep_msgs("Unknown command: ", cmdp)); + return (dobeep_msgs("Unknown command:", cmdp)); numparams = numparams_function(funcp); if (numparams == 0)