Changeset 132ab5d1 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (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
-
uspace/srv/hid/console/console.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r8bfb163 r132ab5d1 47 47 #include <io/output.h> 48 48 #include <align.h> 49 #include <malloc.h>50 49 #include <as.h> 51 50 #include <task.h> 52 51 #include <fibril_synch.h> 52 #include <stdlib.h> 53 53 #include "console.h" 54 54 … … 119 119 static int cons_open(con_srvs_t *, con_srv_t *); 120 120 static int cons_close(con_srv_t *); 121 static int cons_read(con_srv_t *, void *, size_t );122 static int cons_write(con_srv_t *, void *, size_t );121 static int cons_read(con_srv_t *, void *, size_t, size_t *); 122 static int cons_write(con_srv_t *, void *, size_t, size_t *); 123 123 static void cons_sync(con_srv_t *); 124 124 static void cons_clear(con_srv_t *); … … 338 338 } 339 339 340 static int cons_read(con_srv_t *srv, void *buf, size_t size )340 static int cons_read(con_srv_t *srv, void *buf, size_t size, size_t *nread) 341 341 { 342 342 uint8_t *bbuf = buf; … … 378 378 } 379 379 380 return size; 381 } 382 383 static int cons_write(con_srv_t *srv, void *data, size_t size) 380 *nread = size; 381 return EOK; 382 } 383 384 static int cons_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten) 384 385 { 385 386 console_t *cons = srv_to_console(srv); … … 389 390 cons_write_char(cons, str_decode(data, &off, size)); 390 391 391 return size; 392 *nwritten = size; 393 return EOK; 392 394 } 393 395
Note:
See TracChangeset
for help on using the changeset viewer.
