Changes in / [c8dc9ac:6eda732] in mainline


Ignore:
Location:
uspace
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    rc8dc9ac r6eda732  
    413413
    414414$(DEPEND): $(PRE_DEPEND)
    415         makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) > $@ 2> /dev/null
    416         makedepend -f - -o.test.o -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) -- $(TEST_SOURCES) >> $@ 2> /dev/null
     415        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
    417416        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    418417
  • uspace/lib/c/Makefile

    rc8dc9ac r6eda732  
    176176        test/main.c \
    177177        test/odict.c \
    178         test/sprintf.c \
    179         test/str.c
     178        test/sprintf.c
    180179
    181180include $(USPACE_PREFIX)/Makefile.common
  • uspace/lib/c/generic/str.c

    rc8dc9ac r6eda732  
    11571157                memmove(str, &str[pos], str_sz - pos);
    11581158                pos = str_sz - pos;
    1159                 str[pos] = '\0';
     1159                str[str_sz - pos] = '\0';
    11601160        }
    11611161}
     
    12501250}
    12511251
    1252 /** Convert string to a number.
     1252/** Convert string to a number. 
    12531253 * Core of strtol and strtoul functions.
    12541254 *
     
    12961296                                str += 2;
    12971297                        }
    1298                 }
     1298                } 
    12991299        }
    13001300       
     
    13351335                *endptr = (char *) str;
    13361336
    1337         if (nptr == str) {
     1337        if (nptr == str) { 
    13381338                /*FIXME: errno = EINVAL*/
    13391339                return 0;
     
    13661366                if ((sgn) && (number == (unsigned long) (LONG_MAX) + 1)) {
    13671367                        /* FIXME: set 0 to errno */
    1368                         return number;
     1368                        return number;         
    13691369                }
    13701370                /* FIXME: set ERANGE to errno */
    1371                 return (sgn ? LONG_MIN : LONG_MAX);
     1371                return (sgn ? LONG_MIN : LONG_MAX);     
    13721372        }
    13731373       
  • uspace/lib/c/test/main.c

    rc8dc9ac r6eda732  
    3434PCUT_IMPORT(odict);
    3535PCUT_IMPORT(sprintf);
    36 PCUT_IMPORT(str);
    3736
    3837PCUT_MAIN()
  • uspace/srv/hid/compositor/compositor.c

    rc8dc9ac r6eda732  
    471471                                                /* FIXME: Ghost is currently drawn based on the bounding
    472472                                                 * rectangle of the window, which is sufficient as long
    473                                                  * as the windows can be rotated only by 90 degrees.
     473                                                 * as the windows can be rotated only by 90 degrees. 
    474474                                                 * For ghost to be compatible with arbitrary-angle
    475475                                                 * rotation, it should be drawn as four lines adjusted
     
    910910                        if (!win) {
    911911                                async_answer_2(callid, ENOMEM, 0, 0);
    912                                 fibril_mutex_unlock(&window_list_mtx);
    913912                                return;
    914913                        }
     
    929928                                window_destroy(win);
    930929                                async_answer_2(callid, EINVAL, 0, 0);
    931                                 fibril_mutex_unlock(&window_list_mtx);
    932930                                return;
    933931                        }
     
    937935                                window_destroy(win);
    938936                                async_answer_2(callid, EINVAL, 0, 0);
    939                                 fibril_mutex_unlock(&window_list_mtx);
    940937                                return;
    941938                        }
     
    10561053
    10571054        /* Create surface with respect to the retrieved mode. */
    1058         surface_t *new_surface = surface_create(new_mode.screen_width,
     1055        surface_t *new_surface = surface_create(new_mode.screen_width, 
    10591056            new_mode.screen_height, NULL, SURFACE_FLAG_SHARED);
    10601057        if (!new_surface) {
Note: See TracChangeset for help on using the changeset viewer.