Changeset eb522e8 in mainline for uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
r9e2e715 reb522e8 125 125 126 126 for (c = 0, optind = 0, opt_ind = 0; c != -1;) { 127 c = getopt_long(argc, argv, " pvhVfm:", long_options, &opt_ind);127 c = getopt_long(argc, argv, "s:h", long_options, &opt_ind); 128 128 switch (c) { 129 129 case 'h': … … 168 168 rc = write(fd, buffer, to_write); 169 169 if (rc <= 0) { 170 printf("%s: Error writing file (% d).\n", cmdname, rc);170 printf("%s: Error writing file (%zd).\n", cmdname, rc); 171 171 close(fd); 172 172 return CMD_FAILURE; … … 177 177 rc = close(fd); 178 178 if (rc != 0) { 179 printf("%s: Error writing file (% d).\n", cmdname, rc);179 printf("%s: Error writing file (%zd).\n", cmdname, rc); 180 180 return CMD_FAILURE; 181 181 }
Note:
See TracChangeset
for help on using the changeset viewer.