Changeset 975f62f in mainline


Ignore:
Timestamp:
2007-07-12T16:02:25Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
358ec13
Parents:
7918fce
Message:

Formatting changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/stream.c

    r7918fce r975f62f  
    6666static ssize_t read_stdin(void *param, void *buf, size_t count)
    6767{
    68         ipcarg_t r0,r1;
     68        ipcarg_t r0, r1;
    6969        size_t i = 0;
    7070
    7171        while (i < count) {
    72                 if (async_req_2(streams[0].phone, CONSOLE_GETCHAR, 0, 0, &r0, &r1) < 0) {
     72                if (async_req_2(streams[0].phone, CONSOLE_GETCHAR, 0, 0, &r0,
     73                    &r1) < 0) {
    7374                        return -1;
    7475                }
     
    8384
    8485        for (i = 0; i < count; i++)
    85                 async_msg(streams[1].phone, CONSOLE_PUTCHAR, ((const char *) buf)[i]);
     86                async_msg(streams[1].phone, CONSOLE_PUTCHAR,
     87                    ((const char *) buf)[i]);
    8688       
    8789        return count;
     
    9395       
    9496        if (console_phone < 0) {
    95                 while ((console_phone = ipc_connect_me_to(PHONE_NS, SERVICE_CONSOLE, 0)) < 0) {
     97                while ((console_phone = ipc_connect_me_to(PHONE_NS,
     98                    SERVICE_CONSOLE, 0)) < 0) {
    9699                        usleep(10000);
    97100                }
     
    111114
    112115        if (console_phone < 0) {
    113                 while ((console_phone = ipc_connect_me_to(PHONE_NS, SERVICE_CONSOLE, 0)) < 0) {
     116                while ((console_phone = ipc_connect_me_to(PHONE_NS,
     117                    SERVICE_CONSOLE, 0)) < 0) {
    114118                        usleep(10000);
    115119                }
Note: See TracChangeset for help on using the changeset viewer.