ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/conf.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_conf.c (file contents):
Revision 1012 by michael, Fri Sep 18 10:14:09 2009 UTC vs.
Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC

# Line 137 | Line 137 | static BlockHeap *ip_entry_heap = NULL;
137   static int ip_entries_count = 0;
138  
139  
140 < inline void *
140 > void *
141   map_to_conf(struct ConfItem *aconf)
142   {
143    void *conf;
144 <  conf = (void *)((unsigned long)aconf +
145 <                  (unsigned long)sizeof(struct ConfItem));
144 >  conf = (void *)((uintptr_t)aconf +
145 >                  (uintptr_t)sizeof(struct ConfItem));
146    return(conf);
147   }
148  
149 < inline struct ConfItem *
149 > struct ConfItem *
150   unmap_conf_item(void *aconf)
151   {
152    struct ConfItem *conf;
153  
154 <  conf = (struct ConfItem *)((unsigned long)aconf -
155 <                             (unsigned long)sizeof(struct ConfItem));
154 >  conf = (struct ConfItem *)((uintptr_t)aconf -
155 >                             (uintptr_t)sizeof(struct ConfItem));
156    return(conf);
157   }
158  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)