Mercurial > hg > Applications > virsh-wrapper
comparison ie-virsh.c @ 50:7a02dee972c4
easy fix randomUUID
author | kono |
---|---|
date | Tue, 30 Jan 2018 22:13:22 +0900 |
parents | b8887c40f8b8 |
children | e45676e6b6cd |
comparison
equal
deleted
inserted
replaced
49:b8887c40f8b8 | 50:7a02dee972c4 |
---|---|
29 #define console_command "console" | 29 #define console_command "console" |
30 #define debug_command "debug" | 30 #define debug_command "debug" |
31 #define define_gdb_command "define-gdb" | 31 #define define_gdb_command "define-gdb" |
32 | 32 |
33 | 33 |
34 const char *guests[] = {}; | 34 const char *guests[] = {"145165B"}; |
35 const char *managers[] = {"atton"}; | 35 const char *managers[] = {"atton"}; |
36 const char *students_identifier = "student"; | 36 const char *students_identifier = "student"; |
37 const char *teachers_identifier = "teacher"; | 37 const char *teachers_identifier = "teacher"; |
38 const char *students_sym = "students"; | 38 const char *students_sym = "students"; |
39 const char *teachers_sym = "teachers"; | 39 const char *teachers_sym = "teachers"; |
168 } | 168 } |
169 | 169 |
170 const int guests_num = sizeof(guests) / sizeof(guests[0]); | 170 const int guests_num = sizeof(guests) / sizeof(guests[0]); |
171 int j = 0; | 171 int j = 0; |
172 for (; j < guests_num; j++) { | 172 for (; j < guests_num; j++) { |
173 if (strncmp(account_name, guests[j], NAME_LENGTH) == 0) { | 173 if (strncmp(account_name, guests[j], NAME_LENGTH) == 0) { return GUESTS; |
174 return GUESTS; | |
175 } | 174 } |
176 } | 175 } |
177 | 176 |
178 return -1; | 177 return -1; |
179 } | 178 } |