aboutsummaryrefslogtreecommitdiff
path: root/ddb/db_command.c
diff options
context:
space:
mode:
authorGuy-Fleury Iteriteka <gfleury@disroot.org>2023-01-01 14:49:07 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-01 13:56:06 +0100
commit4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f (patch)
treeb7989f6a5c5fc941b328abe497af14f93cf10cf7 /ddb/db_command.c
parentf41500837c5a0d0433bbc7cc1de603cbccfc2958 (diff)
downloadgnumach-4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f.tar.gz
gnumach-4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f.tar.bz2
gnumach-4fa8fee3012a7ecda4d7e45de62e1f3cba5ea38f.zip
convert K&R into ansi
Message-Id: <Y7GBQ5bk6ZQqtfda@falom>
Diffstat (limited to 'ddb/db_command.c')
-rw-r--r--ddb/db_command.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 57200fe3..c9e4f6ae 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -97,10 +97,10 @@ boolean_t db_ed_style = TRUE;
* Search for command prefix.
*/
static int
-db_cmd_search(name, table, cmdp)
- const char * name;
- const struct db_command *table;
- const struct db_command **cmdp; /* out */
+db_cmd_search(
+ const char * name,
+ const struct db_command *table,
+ const struct db_command **cmdp /* out */)
{
const struct db_command *cmd;
int result = CMD_NONE;
@@ -144,8 +144,7 @@ db_cmd_search(name, table, cmdp)
}
static void
-db_cmd_list(table)
- const struct db_command *table;
+db_cmd_list(const struct db_command *table)
{
const struct db_command *cmd;
@@ -470,8 +469,7 @@ db_exec_cmd_nest(
return(db_cmd_loop_done == FALSE);
}
-void db_error(s)
- const char *s;
+void db_error(const char *s)
{
extern int db_macro_level;
@@ -547,9 +545,9 @@ db_fncall(void)
}
boolean_t __attribute__ ((pure))
-db_option(modif, option)
- const char *modif;
- int option;
+db_option(
+ const char *modif,
+ int option)
{
const char *p;