projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
package/iproute2: refresh patches
[openwrt.git]
/
package
/
swconfig
/
src
/
cli.c
diff --git
a/package/swconfig/src/cli.c
b/package/swconfig/src/cli.c
index
d99eda9
..
76593ba
100644
(file)
--- a/
package/swconfig/src/cli.c
+++ b/
package/swconfig/src/cli.c
@@
-2,6
+2,7
@@
* swconfig.c: Switch configuration utility
*
* Copyright (C) 2008 Felix Fietkau <nbd@openwrt.org>
* swconfig.c: Switch configuration utility
*
* Copyright (C) 2008 Felix Fietkau <nbd@openwrt.org>
+ * Copyright (C) 2010 Martin Mares <mj@ucw.cz>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-195,8
+196,6
@@
int main(int argc, char **argv)
int err;
int i;
int err;
int i;
- struct switch_port *ports;
-
int cmd = CMD_NONE;
char *cdev = NULL;
int cport = -1;
int cmd = CMD_NONE;
char *cdev = NULL;
int cport = -1;
@@
-254,8
+253,6
@@
int main(int argc, char **argv)
return 1;
}
return 1;
}
- ports = malloc(sizeof(struct switch_port) * dev->ports);
- memset(ports, 0, sizeof(struct switch_port) * dev->ports);
swlib_scan(dev);
if (cmd == CMD_GET || cmd == CMD_SET) {
swlib_scan(dev);
if (cmd == CMD_GET || cmd == CMD_SET) {
@@
-328,7
+325,5
@@
int main(int argc, char **argv)
out:
swlib_free_all(dev);
out:
swlib_free_all(dev);
- free(ports);
-
return 0;
}
return 0;
}
This page took
0.023742 seconds
and
4
git commands to generate.