summaryrefslogtreecommitdiffstats
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-12-16 08:25:48 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-12-16 08:25:48 +0000
commitc9912c20b323c28671f32a65da20e926c17982e0 (patch)
treef91a40b132f1f8b1dadd6f36ef04650fabbf16c0 /cmd-source-file.c
parent5445918b3e4dd2e474ea30e0069ddef60077b42b (diff)
Fix C-space and M-space.
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r--cmd-source-file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index b7e0fd25..ab9a2399 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-source-file.c,v 1.1 2008-12-15 21:21:56 nicm Exp $ */
+/* $Id: cmd-source-file.c,v 1.2 2008-12-16 08:25:48 nicm Exp $ */
/*
* Copyright (c) 2008 Tiago Cunha <me@tiagocunha.org>
@@ -39,7 +39,7 @@ struct cmd_source_file_data {
const struct cmd_entry cmd_source_file_entry = {
"source-file", "source",
"path",
- CMD_ONEARG,
+ 0,
cmd_source_file_init,
cmd_source_file_parse,
cmd_source_file_exec,
@@ -62,7 +62,7 @@ int
cmd_source_file_parse(struct cmd *self, int argc, char **argv, char **cause)
{
struct cmd_source_file_data *data;
- int opt;
+ int opt;
self->entry->init(self, 0);
data = self->data;
@@ -91,8 +91,8 @@ usage:
void
cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx)
{
- char *cause;
struct cmd_source_file_data *data = self->data;
+ char *cause;
if (load_cfg(data->path, &cause) != 0) {
ctx->error(ctx, "%s", cause);