mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
2004-03-05 Joel Sherrill <joel@OARcorp.com>
* score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Add cast to avoid type punning warning in gcc 3.3.
This commit is contained in:
@@ -1,23 +1,10 @@
|
||||
2004-03-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* libblock/src/bdbuf.c, libblock/src/ramdisk.c,
|
||||
libcsupport/src/newlibc.c, libcsupport/src/sync.c,
|
||||
libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c,
|
||||
libmisc/shell/cmds.c, libmisc/shell/shell.c,
|
||||
libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c,
|
||||
libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c,
|
||||
libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c,
|
||||
libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c,
|
||||
libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c,
|
||||
libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c,
|
||||
libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c,
|
||||
libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c,
|
||||
libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c,
|
||||
libnetworking/libc/res_send.c, libnetworking/libc/res_update.c,
|
||||
libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c,
|
||||
librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c,
|
||||
score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too
|
||||
much was accidentally committed -- revert.
|
||||
* score/macros/rtems/score/chain.inl, score/src/objectidtoname.c:
|
||||
Add cast to avoid type punning warning in gcc 3.3.
|
||||
2004-03-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
*
|
||||
|
||||
2004-03-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
*/
|
||||
|
||||
#define _Chain_Head( _the_chain ) \
|
||||
((Chain_Node *) (_the_chain))
|
||||
((Chain_Node *) ((void *)(_the_chain)))
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
@@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
#define _Chain_Tail( _the_chain ) \
|
||||
((Chain_Node *) &(_the_chain)->permanent_null)
|
||||
((Chain_Node *) ((void *)&(_the_chain)->permanent_null))
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
|
||||
@@ -40,6 +40,7 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
|
||||
unsigned32 the_class;
|
||||
Objects_Information *information;
|
||||
Objects_Control *the_object = (Objects_Control *) 0;
|
||||
Objects_Locations ignored_location;
|
||||
|
||||
if ( !name )
|
||||
return OBJECTS_INVALID_NAME;
|
||||
@@ -57,7 +58,7 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
|
||||
if ( information->is_string )
|
||||
return OBJECTS_INVALID_ID;
|
||||
|
||||
the_object = _Objects_Get( information, id, OBJECTS_SEARCH_LOCAL_NODE );
|
||||
the_object = _Objects_Get( information, id, &ignored_location );
|
||||
if (!the_object)
|
||||
return OBJECTS_INVALID_ID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user