Changes in uspace/app/bdsh/cmds/modules/cp/cp.c [e4c0e0c:09ab0a9a] in mainline
- File:
-
- 1 edited
-
uspace/app/bdsh/cmds/modules/cp/cp.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
re4c0e0c r09ab0a9a 45 45 46 46 #define CP_VERSION "0.0.1" 47 #define CP_DEFAULT_BUFLEN (1024 * 64)47 #define CP_DEFAULT_BUFLEN 1024 48 48 49 49 static const char *cmdname = "cp"; … … 146 146 { 147 147 va_list args; 148 errno_t rc;149 148 150 149 va_start(args, message); … … 155 154 cons_event_t ev; 156 155 console_flush(con); 157 rc = console_get_event(con, &ev); 158 if (rc != EOK) 159 exit(1); 156 console_get_event(con, &ev); 160 157 if (ev.type != CEV_KEY || ev.ev.key.type != KEY_PRESS || 161 158 (ev.ev.key.mods & (KM_CTRL | KM_ALT)) != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
