Changeset 3bacee1 in mainline for uspace/app/bdsh/cmds
- Timestamp:
- 2018-04-12T16:27:17Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cmp/cmp.c
r76d0981d r3bacee1 59 59 help_cmd_cmp(HELP_SHORT); 60 60 printf( 61 "Usage: %s [options] <file1> <file2>\n"62 "Options:\n"63 " -h, --help A short option summary\n"64 " -v, --version Print version information and exit\n"65 "No output is printed; the return code is 1 if the files differ.\n",66 cmdname);61 "Usage: %s [options] <file1> <file2>\n" 62 "Options:\n" 63 " -h, --help A short option summary\n" 64 " -v, --version Print version information and exit\n" 65 "No output is printed; the return code is 1 if the files differ.\n", 66 cmdname); 67 67 } 68 68 … … 73 73 { 74 74 errno_t rc = EOK; 75 const char *fn[2] = { fn0, fn1};76 int fd[2] = { -1, -1};75 const char *fn[2] = { fn0, fn1 }; 76 int fd[2] = { -1, -1 }; 77 77 char buffer[2][CMP_BUFLEN]; 78 78 size_t offset[2]; 79 aoff64_t pos[2] = { };79 aoff64_t pos[2] = { }; 80 80 81 81 for (int i = 0; i < 2; i++) { … … 142 142 if (argc - optind != 2) { 143 143 printf("%s - incorrect number of arguments. Try `%s --help'\n", 144 144 cmdname, cmdname); 145 145 return CMD_FAILURE; 146 146 }
Note:
See TracChangeset
for help on using the changeset viewer.