Changeset 1916d1f in mainline for uspace/lib/posix/stdio/scanf.c


Ignore:
Timestamp:
2011-07-12T13:41:26Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50fc490
Parents:
11809eab (diff), 6817eba (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.
Message:

Merge libposix changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/stdio/scanf.c

    r11809eab r1916d1f  
    115115        /* Caller could already pre-allocated the window. */
    116116        assert((self->window == NULL && self->window_size == 0) ||
    117                 (self->window && self->window_size > 0));
     117            (self->window && self->window_size > 0));
    118118
    119119        /* Initialize internal structures. */
    120120        self->consumed = 0;
    121121        ssize_t fetched = posix_getline(
    122                 &self->window, &self->window_size, self->source.stream);
     122            &self->window, &self->window_size, self->source.stream);
    123123        if (fetched != -1) {
    124124                self->fetched = fetched;
     
    159159                if (*self->cursor == '\0') {
    160160                        ssize_t fetched = posix_getline(&self->window,
    161                                 &self->window_size, self->source.stream);
     161                            &self->window_size, self->source.stream);
    162162                        if (fetched != -1) {
    163163                                self->fetched += fetched;
     
    215215                }
    216216                ssize_t fetched = posix_getline(&self->window,
    217                         &self->window_size, self->source.stream);
     217                    &self->window_size, self->source.stream);
    218218                if (fetched != -1) {
    219219                        assert(fetched == 1);
     
    267267                /* Window was completely consumed, fetch new data. */
    268268                ssize_t fetched = posix_getline(&self->window,
    269                         &self->window_size, self->source.stream);
     269                    &self->window_size, self->source.stream);
    270270                if (fetched != -1) {
    271271                        self->fetched += fetched;
     
    10801080                                bool sane =
    10811081                                    width == -1 &&
    1082                                         length_mod == LMOD_NONE &&
    1083                                         assign_alloc == false &&
    1084                                         assign_supress == false;
     1082                                    length_mod == LMOD_NONE &&
     1083                                    assign_alloc == false &&
     1084                                    assign_supress == false;
    10851085
    10861086                                if (sane) {
Note: See TracChangeset for help on using the changeset viewer.