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

Comparing:
ircd-hybrid-7.2/include/irc_reslib.h (file contents), Revision 995 by michael, Fri Aug 21 10:11:14 2009 UTC vs.
ircd-hybrid/trunk/include/irc_reslib.h (file contents), Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC

# Line 11 | Line 11
11   */
12   #define IRC_NS_GET16(s, cp) { \
13          const unsigned char *t_cp = (const unsigned char *)(cp); \
14 <        (s) = ((u_int16_t)t_cp[0] << 8) \
15 <            | ((u_int16_t)t_cp[1]) \
14 >        (s) = ((uint16_t)t_cp[0] << 8) \
15 >            | ((uint16_t)t_cp[1]) \
16              ; \
17          (cp) += NS_INT16SZ; \
18   }
19  
20   #define IRC_NS_GET32(l, cp) { \
21          const unsigned char *t_cp = (const unsigned char *)(cp); \
22 <        (l) = ((u_int32_t)t_cp[0] << 24) \
23 <            | ((u_int32_t)t_cp[1] << 16) \
24 <            | ((u_int32_t)t_cp[2] << 8) \
25 <            | ((u_int32_t)t_cp[3]) \
22 >        (l) = ((uint32_t)t_cp[0] << 24) \
23 >            | ((uint32_t)t_cp[1] << 16) \
24 >            | ((uint32_t)t_cp[2] << 8) \
25 >            | ((uint32_t)t_cp[3]) \
26              ; \
27          (cp) += NS_INT32SZ; \
28   }
29  
30   #define IRC_NS_PUT16(s, cp) { \
31 <        u_int16_t t_s = (u_int16_t)(s); \
31 >        uint16_t t_s = (uint16_t)(s); \
32          unsigned char *t_cp = (unsigned char *)(cp); \
33          *t_cp++ = t_s >> 8; \
34          *t_cp   = t_s; \
# Line 36 | Line 36
36   }
37  
38   #define IRC_NS_PUT32(l, cp) { \
39 <        u_int32_t t_l = (u_int32_t)(l); \
39 >        uint32_t t_l = (uint32_t)(l); \
40          unsigned char *t_cp = (unsigned char *)(cp); \
41          *t_cp++ = t_l >> 24; \
42          *t_cp++ = t_l >> 16; \
# Line 47 | Line 47
47  
48   extern struct irc_ssaddr irc_nsaddr_list[];
49   extern int irc_nscount;
50 < extern int irc_res_init(void);
50 > extern void irc_res_init(void);
51   extern int irc_dn_expand(const unsigned char *msg, const unsigned char *eom, const unsigned char *src, char *dst, int dstsiz);
52   extern int irc_dn_skipname(const unsigned char *ptr, const unsigned char *eom);
53   extern unsigned int irc_ns_get16(const unsigned char *src);

Diff Legend

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