Changeset 0da0dea in rtems


Ignore:
Timestamp:
10/19/00 15:33:03 (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c92fb641
Parents:
e090b7e
Message:

2000-10-19 Antti P Miettinen <anmietti@…>

  • lib/tftpDriver.c: add comments to handlers struct function pointers.
  • rtems/rtems_glue.c: move pointer arithmetic to be _after_ pointer has been checked against NULL.
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libnetworking/ChangeLog

    re090b7e r0da0dea  
     12000-10-19  Antti P Miettinen  <anmietti@trshp.ntc.nokia.com>
     2
     3        * lib/tftpDriver.c: add comments to handlers struct function pointers.
     4        * rtems/rtems_glue.c: move pointer arithmetic to be _after_
     5        pointer has been checked against NULL.
     6
    172000-10-18       Chris Johns <ccj@acm.org>
    28
  • c/src/exec/libnetworking/lib/tftpDriver.c

    re090b7e r0da0dea  
    761761
    762762rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
    763   rtems_tftp_open,
    764   rtems_tftp_close,
    765   rtems_tftp_read,
    766   rtems_tftp_write,
    767   NULL,
    768   NULL,
    769   NULL,
    770   NULL,
    771   NULL,
    772   NULL,
    773   NULL,
    774   NULL,
     763  rtems_tftp_open,   /* open */     
     764  rtems_tftp_close,  /* close */   
     765  rtems_tftp_read,   /* read */     
     766  rtems_tftp_write,  /* write */   
     767  NULL,              /* ioctl */   
     768  NULL,              /* lseek */   
     769  NULL,              /* fstat */   
     770  NULL,              /* fchmod */   
     771  NULL,              /* ftruncate */
     772  NULL,              /* fpathconf */
     773  NULL,              /* fsync */   
     774  NULL,              /* fdatasync */
     775  NULL,              /* fcntl */
     776  NULL               /* rmnod */
    775777};
  • c/src/exec/libnetworking/rtems/rtems_glue.c

    re090b7e r0da0dea  
    143143         */
    144144        p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
    145         p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
    146145        if (p == NULL) {
    147146                printf ("Can't get network cluster memory.\n");
    148147                return -1;
    149148        }
     149        p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
    150150        mbutl = (struct mbuf *)p;
    151151        for (i = 0; i < nmbclusters; i++) {
  • c/src/libnetworking/ChangeLog

    re090b7e r0da0dea  
     12000-10-19  Antti P Miettinen  <anmietti@trshp.ntc.nokia.com>
     2
     3        * lib/tftpDriver.c: add comments to handlers struct function pointers.
     4        * rtems/rtems_glue.c: move pointer arithmetic to be _after_
     5        pointer has been checked against NULL.
     6
    172000-10-18       Chris Johns <ccj@acm.org>
    28
  • c/src/libnetworking/lib/tftpDriver.c

    re090b7e r0da0dea  
    761761
    762762rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
    763   rtems_tftp_open,
    764   rtems_tftp_close,
    765   rtems_tftp_read,
    766   rtems_tftp_write,
    767   NULL,
    768   NULL,
    769   NULL,
    770   NULL,
    771   NULL,
    772   NULL,
    773   NULL,
    774   NULL,
     763  rtems_tftp_open,   /* open */     
     764  rtems_tftp_close,  /* close */   
     765  rtems_tftp_read,   /* read */     
     766  rtems_tftp_write,  /* write */   
     767  NULL,              /* ioctl */   
     768  NULL,              /* lseek */   
     769  NULL,              /* fstat */   
     770  NULL,              /* fchmod */   
     771  NULL,              /* ftruncate */
     772  NULL,              /* fpathconf */
     773  NULL,              /* fsync */   
     774  NULL,              /* fdatasync */
     775  NULL,              /* fcntl */
     776  NULL               /* rmnod */
    775777};
  • c/src/libnetworking/rtems/rtems_glue.c

    re090b7e r0da0dea  
    143143         */
    144144        p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
    145         p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
    146145        if (p == NULL) {
    147146                printf ("Can't get network cluster memory.\n");
    148147                return -1;
    149148        }
     149        p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
    150150        mbutl = (struct mbuf *)p;
    151151        for (i = 0; i < nmbclusters; i++) {
  • cpukit/libnetworking/ChangeLog

    re090b7e r0da0dea  
     12000-10-19  Antti P Miettinen  <anmietti@trshp.ntc.nokia.com>
     2
     3        * lib/tftpDriver.c: add comments to handlers struct function pointers.
     4        * rtems/rtems_glue.c: move pointer arithmetic to be _after_
     5        pointer has been checked against NULL.
     6
    172000-10-18       Chris Johns <ccj@acm.org>
    28
  • cpukit/libnetworking/lib/tftpDriver.c

    re090b7e r0da0dea  
    761761
    762762rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
    763   rtems_tftp_open,
    764   rtems_tftp_close,
    765   rtems_tftp_read,
    766   rtems_tftp_write,
    767   NULL,
    768   NULL,
    769   NULL,
    770   NULL,
    771   NULL,
    772   NULL,
    773   NULL,
    774   NULL,
     763  rtems_tftp_open,   /* open */     
     764  rtems_tftp_close,  /* close */   
     765  rtems_tftp_read,   /* read */     
     766  rtems_tftp_write,  /* write */   
     767  NULL,              /* ioctl */   
     768  NULL,              /* lseek */   
     769  NULL,              /* fstat */   
     770  NULL,              /* fchmod */   
     771  NULL,              /* ftruncate */
     772  NULL,              /* fpathconf */
     773  NULL,              /* fsync */   
     774  NULL,              /* fdatasync */
     775  NULL,              /* fcntl */
     776  NULL               /* rmnod */
    775777};
  • cpukit/libnetworking/rtems/rtems_glue.c

    re090b7e r0da0dea  
    143143         */
    144144        p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
    145         p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
    146145        if (p == NULL) {
    147146                printf ("Can't get network cluster memory.\n");
    148147                return -1;
    149148        }
     149        p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
    150150        mbutl = (struct mbuf *)p;
    151151        for (i = 0; i < nmbclusters; i++) {
Note: See TracChangeset for help on using the changeset viewer.