Changes in uspace/app/bdsh/cmds/modules/mkfile/mkfile.c [336d2faa:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
r336d2faa r7e752b2 38 38 #include <getopt.h> 39 39 #include <stdarg.h> 40 #include <str ing.h>40 #include <str.h> 41 41 #include <ctype.h> 42 42 … … 51 51 #define BUFFER_SIZE 16384 52 52 53 static c har *cmdname = "mkfile";53 static const char *cmdname = "mkfile"; 54 54 55 55 static struct option const long_options[] = { … … 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.