Changes in uspace/app/bdsh/cmds/modules/mkfile/mkfile.c [c672195:19f857a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
rc672195 r19f857a 125 125 126 126 for (c = 0, optind = 0, opt_ind = 0; c != -1;) { 127 c = getopt_long(argc, argv, " s:h", long_options, &opt_ind);127 c = getopt_long(argc, argv, "pvhVfm:", 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 (% zd).\n", cmdname, rc);170 printf("%s: Error writing file (%d).\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 (% zd).\n", cmdname, rc);179 printf("%s: Error writing file (%d).\n", cmdname, rc); 180 180 return CMD_FAILURE; 181 181 }
Note:
See TracChangeset
for help on using the changeset viewer.