diff options
Diffstat (limited to 'bin/rt_launch.c')
-rw-r--r-- | bin/rt_launch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rt_launch.c b/bin/rt_launch.c index 3863031..84a5e6c 100644 --- a/bin/rt_launch.c +++ b/bin/rt_launch.c | |||
@@ -54,7 +54,7 @@ int main(int argc, char** argv) | |||
54 | int verbose = 0; | 54 | int verbose = 0; |
55 | int wait = 0; | 55 | int wait = 0; |
56 | startup_info_t info; | 56 | startup_info_t info; |
57 | task_class_t class = RT_CLASS_HARD; | 57 | task_class_t rt_class = RT_CLASS_HARD; |
58 | 58 | ||
59 | while ((opt = getopt(argc, argv, OPTSTR)) != -1) { | 59 | while ((opt = getopt(argc, argv, OPTSTR)) != -1) { |
60 | switch (opt) { | 60 | switch (opt) { |
@@ -69,8 +69,8 @@ int main(int argc, char** argv) | |||
69 | migrate = 1; | 69 | migrate = 1; |
70 | break; | 70 | break; |
71 | case 'c': | 71 | case 'c': |
72 | class = str2class(optarg); | 72 | rt_class = str2class(optarg); |
73 | if (class == -1) | 73 | if (rt_class == -1) |
74 | usage("Unknown task class."); | 74 | usage("Unknown task class."); |
75 | break; | 75 | break; |
76 | 76 | ||
@@ -107,7 +107,7 @@ int main(int argc, char** argv) | |||
107 | if (ret < 0) | 107 | if (ret < 0) |
108 | bail_out("could not migrate to target partition"); | 108 | bail_out("could not migrate to target partition"); |
109 | } | 109 | } |
110 | ret = __create_rt_task(launch, &info, cpu, wcet, period, class); | 110 | ret = __create_rt_task(launch, &info, cpu, wcet, period, rt_class); |
111 | 111 | ||
112 | 112 | ||
113 | if (ret < 0) | 113 | if (ret < 0) |