From 5a648736360fb4038ad2e1c01a5922bda206e297 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Fri, 23 Jul 2010 11:33:13 -0400 Subject: [NPS-F] Adapt to new add_server() API and fix parameters order - comply with new add_server() API - fix wrong order in parameters for rt_launch_npsf.c --- bin/npsf_add_server.c | 4 ++-- bin/rtspin_npsf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/npsf_add_server.c b/bin/npsf_add_server.c index 9fa59c0..9f3f92c 100644 --- a/bin/npsf_add_server.c +++ b/bin/npsf_add_server.c @@ -62,7 +62,7 @@ int main(int argc, char** argv) /* different notional processor */ /* add server */ printf("Adding npsf_id = %d\n", curr_id); - ret = add_server(&curr_id, budgets); + ret = add_server(&curr_id, budgets, 0); if (ret < 0) { fclose(file); @@ -94,7 +94,7 @@ int main(int argc, char** argv) } /* save the last entry */ - ret = add_server(&curr_id, budgets); + ret = add_server(&curr_id, budgets, 1); printf("Adding npsf_id = %d\n", curr_id); if (ret < 0) { fclose(file); diff --git a/bin/rtspin_npsf.c b/bin/rtspin_npsf.c index 87eb52f..d5dff3d 100644 --- a/bin/rtspin_npsf.c +++ b/bin/rtspin_npsf.c @@ -195,7 +195,7 @@ int main(int argc, char** argv) return 0; } - if (argc - optind < 3) + if (argc - optind < 5) usage("Arguments missing."); wcet_ms = atof(argv[optind + 0]); period_ms = atof(argv[optind + 1]); -- cgit v1.2.2