summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4df3757)
kinect_upload_fw.c:118:19: error: initialization discards ‘const’ qualifier from pointer target type
A string literals can be seen as "const char *" or as array of chars,
I like the second interpretation better.
}
int main(int argc, char** argv) {
}
int main(int argc, char** argv) {
- char* filename = "firmware.bin";
+ char default_filename[] = "firmware.bin";
+ char* filename = default_filename;
if (argc == 2) {
filename = argv[1];
}
if (argc == 2) {
filename = argv[1];
}