projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c601d03
)
move the DUMP_SUFFIX define to the right place
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 10 Sep 2011 16:37:52 +0000
(18:37 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 10 Sep 2011 16:37:52 +0000
(18:37 +0200)
proto-shell.c
patch
|
blob
|
history
diff --git
a/proto-shell.c
b/proto-shell.c
index
84d1c9c
..
8d99c74
100644
(file)
--- a/
proto-shell.c
+++ b/
proto-shell.c
@@
-29,8
+29,6
@@
struct proto_shell_state {
struct blob_attr *config;
};
struct blob_attr *config;
};
-#define DUMP_SUFFIX " '' dump"
-
static int run_script(const char **argv)
{
int pid, ret;
static int run_script(const char **argv)
{
int pid, ret;
@@
-231,6
+229,8
@@
static void proto_shell_add_script(const char *name)
FILE *f;
int buflen, len;
FILE *f;
int buflen, len;
+#define DUMP_SUFFIX " '' dump"
+
cmd = alloca(strlen(name) + 1 + sizeof(DUMP_SUFFIX));
sprintf(cmd, "%s" DUMP_SUFFIX, name);
cmd = alloca(strlen(name) + 1 + sizeof(DUMP_SUFFIX));
sprintf(cmd, "%s" DUMP_SUFFIX, name);