2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>

* 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.
This commit is contained in:
Joel Sherrill
2000-10-19 15:33:03 +00:00
parent e090b7e5de
commit 0da0dea224
9 changed files with 63 additions and 39 deletions

View File

@@ -1,3 +1,9 @@
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
* 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.
2000-10-18 Chris Johns <ccj@acm.org>
* pppd/ipxcp.c: Fixed a typo.

View File

@@ -760,16 +760,18 @@ rtems_filesystem_operations_table rtems_tftp_ops = {
};
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
rtems_tftp_open,
rtems_tftp_close,
rtems_tftp_read,
rtems_tftp_write,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
rtems_tftp_open, /* open */
rtems_tftp_close, /* close */
rtems_tftp_read, /* read */
rtems_tftp_write, /* write */
NULL, /* ioctl */
NULL, /* lseek */
NULL, /* fstat */
NULL, /* fchmod */
NULL, /* ftruncate */
NULL, /* fpathconf */
NULL, /* fsync */
NULL, /* fdatasync */
NULL, /* fcntl */
NULL /* rmnod */
};

View File

@@ -142,11 +142,11 @@ bsd_init (void)
* Set up mbuf cluster data strutures
*/
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
if (p == NULL) {
printf ("Can't get network cluster memory.\n");
return -1;
}
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
mbutl = (struct mbuf *)p;
for (i = 0; i < nmbclusters; i++) {
((union mcluster *)p)->mcl_next = mclfree;

View File

@@ -1,3 +1,9 @@
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
* 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.
2000-10-18 Chris Johns <ccj@acm.org>
* pppd/ipxcp.c: Fixed a typo.

View File

@@ -760,16 +760,18 @@ rtems_filesystem_operations_table rtems_tftp_ops = {
};
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
rtems_tftp_open,
rtems_tftp_close,
rtems_tftp_read,
rtems_tftp_write,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
rtems_tftp_open, /* open */
rtems_tftp_close, /* close */
rtems_tftp_read, /* read */
rtems_tftp_write, /* write */
NULL, /* ioctl */
NULL, /* lseek */
NULL, /* fstat */
NULL, /* fchmod */
NULL, /* ftruncate */
NULL, /* fpathconf */
NULL, /* fsync */
NULL, /* fdatasync */
NULL, /* fcntl */
NULL /* rmnod */
};

View File

@@ -142,11 +142,11 @@ bsd_init (void)
* Set up mbuf cluster data strutures
*/
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
if (p == NULL) {
printf ("Can't get network cluster memory.\n");
return -1;
}
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
mbutl = (struct mbuf *)p;
for (i = 0; i < nmbclusters; i++) {
((union mcluster *)p)->mcl_next = mclfree;

View File

@@ -1,3 +1,9 @@
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
* 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.
2000-10-18 Chris Johns <ccj@acm.org>
* pppd/ipxcp.c: Fixed a typo.

View File

@@ -760,16 +760,18 @@ rtems_filesystem_operations_table rtems_tftp_ops = {
};
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
rtems_tftp_open,
rtems_tftp_close,
rtems_tftp_read,
rtems_tftp_write,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
rtems_tftp_open, /* open */
rtems_tftp_close, /* close */
rtems_tftp_read, /* read */
rtems_tftp_write, /* write */
NULL, /* ioctl */
NULL, /* lseek */
NULL, /* fstat */
NULL, /* fchmod */
NULL, /* ftruncate */
NULL, /* fpathconf */
NULL, /* fsync */
NULL, /* fdatasync */
NULL, /* fcntl */
NULL /* rmnod */
};

View File

@@ -142,11 +142,11 @@ bsd_init (void)
* Set up mbuf cluster data strutures
*/
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
if (p == NULL) {
printf ("Can't get network cluster memory.\n");
return -1;
}
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
mbutl = (struct mbuf *)p;
for (i = 0; i < nmbclusters; i++) {
((union mcluster *)p)->mcl_next = mclfree;