Changeset 10b83e6 in rtems


Ignore:
Timestamp:
Nov 13, 2009, 11:57:52 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
787519fb
Parents:
d093934
Message:

2009-11-13 Ralf Corsépius <ralf.corsepius@…>

  • telnetd/telnetd.c (telnetd_dflt_spawn): Adjust prototype.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd093934 r10b83e6  
     12009-11-13      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * telnetd/telnetd.c (telnetd_dflt_spawn): Adjust prototype.
     4
    152009-11-12      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
    37        * libblock/include/rtems/blkdev.h, libblock/src/blkdev.c: Changed set
    48        and get IO controls to use the buffer argument for data exchange.
    5 
    69
    7102009-11-11      Sebastian Huber <sebastian.huber@embedded-brains.de>
  • cpukit/telnetd/telnetd.c

    rd093934 r10b83e6  
    8282static int sockpeername(int sock, char *buf, int bufsz);
    8383
    84 void *telnetd_dflt_spawn(
     84rtems_id telnetd_dflt_spawn(
    8585  const char *name,
    8686  unsigned priority,
     
    9393static rtems_id telnetd_task_id = RTEMS_ID_NONE;
    9494
    95 void *(*telnetd_spawn_task)(
     95rtems_id (*telnetd_spawn_task)(
    9696  const char *,
    9797  unsigned,
     
    261261      strncpy(arg->peername, peername, sizeof(arg->peername));
    262262
    263       telnetd_task_id = (rtems_id) telnetd_spawn_task(
     263      telnetd_task_id = telnetd_spawn_task(
    264264        devname,
    265265        rtems_telnetd_config.priority,
     
    328328  /* Check stack size */
    329329  if (rtems_telnetd_config.stack_size <= 0) {
    330     rtems_telnetd_config.stack_size = 32 * 1024;
     330    rtems_telnetd_config.stack_size = (size_t)32 * 1024;
    331331  }
    332332
    333333  /* Spawn task */
    334   telnetd_task_id = (rtems_id) telnetd_spawn_task(
     334  telnetd_task_id = telnetd_spawn_task(
    335335    "TNTD",
    336336    rtems_telnetd_config.priority,
     
    453453}
    454454
    455 void *
     455rtems_id
    456456telnetd_dflt_spawn(const char *name, unsigned int priority, unsigned int stackSize, void (*fn)(void *), void* fnarg)
    457457{
     
    465465  if ( !pwa ) {
    466466    perror("Telnetd: no memory\n");
    467     return (void *) RTEMS_ID_NONE;
     467    return RTEMS_ID_NONE;
    468468  }
    469469
     
    484484        free(pwa);
    485485        rtems_error(sc,"Telnetd: spawning task failed");
    486         return (void *) RTEMS_ID_NONE;
    487   }
    488   return (void *) task_id;
     486        return RTEMS_ID_NONE;
     487  }
     488  return task_id;
    489489}
    490490
Note: See TracChangeset for help on using the changeset viewer.