/[rtmk]/rtmk/ipc-table.c
ViewVC logotype

Diff of /rtmk/ipc-table.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jrydberg, Fri Dec 7 22:08:23 2001 UTC revision 1.2 by jrydberg, Tue Jan 29 18:31:45 2002 UTC
# Line 88  ipc_table_lookup (struct ipc_table *tbl, Line 88  ipc_table_lookup (struct ipc_table *tbl,
88  {  {
89    struct ipc_entry *entry;    struct ipc_entry *entry;
90        
91    assert (name < MTABLERIGHTS && name != 0);    assert (name <= MTABLERIGHTS && name != 0);
92    entry = tbl->it_tbl [name - 1];    entry = tbl->it_tbl [name - 1];
93        
94    if (entry && (IE_BITS_STATUS (entry->ie_bits) & IE_BITS_VALID)    if (entry && (IE_BITS_STATUS (entry->ie_bits) & IE_BITS_VALID)
# Line 108  ipc_table_remove (struct ipc_table *tbl, Line 108  ipc_table_remove (struct ipc_table *tbl,
108  {  {
109    struct ipc_entry *entry;    struct ipc_entry *entry;
110        
111    assert (name < MTABLERIGHTS && name != 0);    assert (name <= MTABLERIGHTS && name != 0);
112    entry = tbl->it_tbl [name - 1];    entry = tbl->it_tbl [name - 1];
113    
114    if (entry && (IE_BITS_STATUS (entry->ie_bits) & IE_BITS_VALID)    if (entry && (IE_BITS_STATUS (entry->ie_bits) & IE_BITS_VALID)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26