Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 12fb8498 in mainline


Ignore:
Timestamp:
2011-07-08T18:05:59Z (10 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master
Children:
46ac986
Parents:
ddc63fd
Message:

Minor cstyle corrections in scanf.

File:
1 edited

Legend:

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

    rddc63fd r12fb8498  
    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.