~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/emulator/drivers/unix/ttsl_drv.c

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
static void ttysl_from_erlang(ErlDrvData ttysl_data, char* buf, int count)
249
249
{
250
250
    if (lpos > MAXSIZE) 
251
 
        put_chars("\n", 1);
 
251
        put_chars((byte*)"\n", 1);
252
252
 
253
 
    if (check_buf_size(buf+1, count-1) == 0)
 
253
    if (check_buf_size((byte*)buf+1, count-1) == 0)
254
254
        return; /*(-1); */
255
255
 
256
256
    switch (buf[0]) {
257
257
    case OP_PUTC:
258
 
        put_chars(buf+1, count-1);
 
258
        put_chars((byte*)buf+1, count-1);
259
259
        break;
260
260
    case OP_MOVE:
261
261
        move_rel(get_sint16(buf+1));
262
262
        break;
263
263
    case OP_INSC:
264
 
        ins_chars(buf+1, count-1);
 
264
        ins_chars((byte*)buf+1, count-1);
265
265
        break;
266
266
    case OP_DELC:
267
267
        del_chars(get_sint16(buf+1));
561
561
{
562
562
    char *c;
563
563
 
564
 
    if (!(c = getenv("TERM")) || tgetent(lbuf, c) <= 0)
 
564
    if (!(c = getenv("TERM")) || tgetent((char*)lbuf, c) <= 0)
565
565
      return FALSE;
566
566
    if (!(capbuf = driver_alloc(1024)))
567
567
      return FALSE;