summaryrefslogtreecommitdiffstats
path: root/serprog.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-08 10:13:37 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-08 10:13:37 +0000
commit2b6dcb36c4121ed12fa2fb66f133365bd88f2456 (patch)
treebea24b22c91729fd1054a4d285bc8f051e5a8f3b /serprog.c
parent7af6cefa482d4ceadbd9b68d6db12ad9759c8b04 (diff)
downloadast2050-flashrom-2b6dcb36c4121ed12fa2fb66f133365bd88f2456.zip
ast2050-flashrom-2b6dcb36c4121ed12fa2fb66f133365bd88f2456.tar.gz
Unify programmer parameter extraction
Make programmer_param static by converting all users to extract_programmer_param. Programmer parameters can no longer be separated with a colon, they have to be separated with a comma. Corresponding to flashrom svn r1072. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'serprog.c')
-rw-r--r--serprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serprog.c b/serprog.c
index b2f5787..b1c4cef 100644
--- a/serprog.c
+++ b/serprog.c
@@ -306,7 +306,7 @@ int serprog_init(void)
int have_device = 0;
/* the parameter is either of format "dev=/dev/device:baud" or "ip=ip:port" */
- device = extract_param(&programmer_param, "dev", ",");
+ device = extract_programmer_param("dev");
if (device && strlen(device)) {
baudport = strstr(device, ":");
if (baudport) {
@@ -333,7 +333,7 @@ int serprog_init(void)
}
free(device);
- device = extract_param(&programmer_param, "ip", ",");
+ device = extract_programmer_param("ip");
if (have_device && device) {
msg_perr("Error: Both host and device specified.\n"
"Please use either dev= or ip= but not both.\n");
OpenPOWER on IntegriCloud