Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmtutil/fmtutil.c

    rb7fd2a0 r38d150e  
    3838} printmode_t;
    3939
    40 errno_t print_wrapped_console(const char *str, align_mode_t alignment)
     40int print_wrapped_console(const char *str, align_mode_t alignment)
    4141{
    4242        console_ctrl_t *console = console_init(stdin, stdout);
     
    4646        }
    4747        sysarg_t con_rows, con_cols, con_col, con_row;
    48         errno_t rc = console_get_size(console, &con_cols, &con_rows);
     48        int rc = console_get_size(console, &con_cols, &con_rows);
    4949        if (rc != EOK) {
    5050                return rc;
     
    6363 *
    6464 **/
    65 static errno_t print_line(wchar_t *wstr, size_t chars, bool last, void *data)
     65static int print_line(wchar_t *wstr, size_t chars, bool last, void *data)
    6666{
    6767        printmode_t *pm = (printmode_t *) data;
    6868        wchar_t old_char = wstr[chars];
    6969        wstr[chars] = 0;
    70         errno_t rc = print_aligned_w(wstr, pm->width, last, pm->alignment);
     70        int rc = print_aligned_w(wstr, pm->width, last, pm->alignment);
    7171        wstr[chars] = old_char;
    7272        return rc;
    7373}
    7474
    75 errno_t print_wrapped(const char *str, size_t width, align_mode_t mode)
     75int print_wrapped(const char *str, size_t width, align_mode_t mode)
    7676{
    7777        printmode_t pm;
     
    8383                return ENOMEM;
    8484        }
    85         errno_t rc = wrap(wstr, width, print_line, &pm);
     85        int rc = wrap(wstr, width, print_line, &pm);
    8686        free(wstr);
    8787        return rc;
    8888}
    8989
    90 errno_t print_aligned_w(const wchar_t *wstr, size_t width, bool last,
     90int print_aligned_w(const wchar_t *wstr, size_t width, bool last,
    9191    align_mode_t mode)
    9292{
     
    169169        return EOK;
    170170}
    171 errno_t print_aligned(const char *str, size_t width, bool last, align_mode_t mode)
     171int print_aligned(const char *str, size_t width, bool last, align_mode_t mode)
    172172{
    173173        wchar_t *wstr = str_to_awstr(str);
     
    175175                return ENOMEM;
    176176        }
    177         errno_t rc = print_aligned_w(wstr, width, last, mode);
     177        int rc = print_aligned_w(wstr, width, last, mode);
    178178        free(wstr);
    179179        return rc;
    180180}
    181181
    182 errno_t wrap(wchar_t *wstr, size_t width, line_consumer_fn consumer, void *data)
     182int wrap(wchar_t *wstr, size_t width, line_consumer_fn consumer, void *data)
    183183{
    184184        size_t word_start = 0;
Note: See TracChangeset for help on using the changeset viewer.