[BACK]Return to misc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/misc.c between version 1.92 and 1.93

version 1.92, 2013/10/14 23:28:23 version 1.93, 2014/04/20 02:30:25
Line 765 
Line 765 
         return (v);          return (v);
 }  }
   
   u_int32_t
   get_u32_le(const void *vp)
   {
           const u_char *p = (const u_char *)vp;
           u_int32_t v;
   
           v  = (u_int32_t)p[0];
           v |= (u_int32_t)p[1] << 8;
           v |= (u_int32_t)p[2] << 16;
           v |= (u_int32_t)p[3] << 24;
   
           return (v);
   }
   
 u_int16_t  u_int16_t
 get_u16(const void *vp)  get_u16(const void *vp)
 {  {
Line 803 
Line 817 
         p[3] = (u_char)v & 0xff;          p[3] = (u_char)v & 0xff;
 }  }
   
   void
   put_u32_le(void *vp, u_int32_t v)
   {
           u_char *p = (u_char *)vp;
   
           p[0] = (u_char)v & 0xff;
           p[1] = (u_char)(v >> 8) & 0xff;
           p[2] = (u_char)(v >> 16) & 0xff;
           p[3] = (u_char)(v >> 24) & 0xff;
   }
   
 void  void
 put_u16(void *vp, u_int16_t v)  put_u16(void *vp, u_int16_t v)

Legend:
Removed from v.1.92  
changed lines
  Added in v.1.93