X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=payloads%2Flibpayload%2Fcurses%2FPDCurses-3.4%2Fx11%2Fpdcx11.c;h=370cedb0a7c3c809bcfe1b9589eebf0f9d180061;hp=1e8d0d163ca368cf61a889d4527fe1889785d3f4;hb=e11835e2995d130890ca9f45cb3e304f2ea3a6a9;hpb=dd6906328904309e4d93e4bcb04a6cfa3646f29d diff --git a/payloads/libpayload/curses/PDCurses-3.4/x11/pdcx11.c b/payloads/libpayload/curses/PDCurses-3.4/x11/pdcx11.c index 1e8d0d163..370cedb0a 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/x11/pdcx11.c +++ b/payloads/libpayload/curses/PDCurses-3.4/x11/pdcx11.c @@ -99,7 +99,7 @@ int XC_read_socket(int sock_num, void *buf, int len) SP->resized = FALSE; memcpy(buf, &rc, sizeof(int)); - + return 0; } @@ -178,7 +178,7 @@ static int _setup_curses(void) if (wait_value != CURSES_CHILD) return ERR; - /* Set LINES and COLS now so that the size of the shared memory + /* Set LINES and COLS now so that the size of the shared memory segment can be allocated */ if ((shmidSP = shmget(shmkeySP, sizeof(SCREEN) + XCURSESSHMMIN, 0700)) < 0) @@ -226,13 +226,13 @@ int XCursesInitscr(int argc, char *argv[]) XC_LOG(("XCursesInitscr() - called\n")); shmkeySP = getpid(); - + if (socketpair(AF_UNIX, SOCK_STREAM, 0, xc_display_sockets) < 0) { fprintf(stderr, "ERROR: cannot create display socketpair\n"); return ERR; } - + if (socketpair(AF_UNIX, SOCK_STREAM, 0, xc_key_sockets) < 0) { fprintf(stderr, "ERROR: cannot create key socketpair\n");