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

Changeset 0471786 in mainline for uspace/srv/fb/ega.c


Ignore:
Timestamp:
2009-06-16T20:22:58Z (14 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial
Children:
62140db
Parents:
08c9f7d
Message:

Fix signedness issues and warnings in fb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/ega.c

    r08c9f7d r0471786  
    8888static void clrscr(void)
    8989{
    90         int i;
     90        unsigned i;
    9191       
    9292        for (i = 0; i < scr_width * scr_height; i++) {
     
    130130static void scroll(int rows)
    131131{
    132         int i;
     132        unsigned i;
     133
    133134        if (rows > 0) {
    134135                memmove(scr_addr, ((char *) scr_addr) + rows * scr_width * 2,
     
    346347                case FB_SCROLL:
    347348                        i = IPC_GET_ARG1(call);
    348                         if (i > scr_height || i < -((int) scr_height)) {
     349                        if (i > (int) scr_height || i < -((int) scr_height)) {
    349350                                retval = EINVAL;
    350351                                break;
Note: See TracChangeset for help on using the changeset viewer.