Compare commits
3 commits
08deed9f60
...
e69243180f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e69243180f | ||
|
|
dd1679c824 | ||
|
|
3e766afea3 |
1 changed files with 4 additions and 5 deletions
|
|
@ -30,11 +30,11 @@ const char help[] =
|
|||
"\0";
|
||||
// clang-format on
|
||||
|
||||
const char copyright[] = "Copyright (C) %s Imbus\n";
|
||||
const char copyright[] = "Copyright (C) %s Imbus, BSD-2-Clause\n";
|
||||
|
||||
#define BUFSIZE (4 * 1024 * 1024)
|
||||
|
||||
typedef struct write_job {
|
||||
struct write_job {
|
||||
char *filename;
|
||||
char *dev_name;
|
||||
char *buffer;
|
||||
|
|
@ -42,9 +42,9 @@ typedef struct write_job {
|
|||
size_t bufsize;
|
||||
size_t block_size;
|
||||
char verify_only;
|
||||
} write_job_t;
|
||||
} wjob = {0};
|
||||
|
||||
write_job_t wjob = {0};
|
||||
typedef struct write_job write_job_t;
|
||||
|
||||
void int_handler(int signum) {
|
||||
fprintf(stderr, "\nInterrupted: %s\n", strsignal(signum));
|
||||
|
|
@ -156,7 +156,6 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
if (argc != 1) {
|
||||
printf("You need to specify an image file.\n");
|
||||
// printf("%s\n", help);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue