~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to libntp/binio.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        long val
28
28
        )
29
29
{
30
 
  *((*bufpp)++) =  val       & 0xFF;
31
 
  *((*bufpp)++) = (val >> 8) & 0xFF;
 
30
  *((*bufpp)++) = (unsigned char) (val        & 0xFF);
 
31
  *((*bufpp)++) = (unsigned char) ((val >> 8) & 0xFF);
32
32
}
33
33
 
34
34
long
52
52
        long val
53
53
        )
54
54
{
55
 
  *((*bufpp)++) =  val        & 0xFF;
56
 
  *((*bufpp)++) = (val >> 8)  & 0xFF;
57
 
  *((*bufpp)++) = (val >> 16) & 0xFF;
58
 
  *((*bufpp)++) = (val >> 24) & 0xFF;
 
55
  *((*bufpp)++) = (unsigned char)(val         & 0xFF);
 
56
  *((*bufpp)++) = (unsigned char)((val >> 8)  & 0xFF);
 
57
  *((*bufpp)++) = (unsigned char)((val >> 16) & 0xFF);
 
58
  *((*bufpp)++) = (unsigned char)((val >> 24) & 0xFF);
59
59
}
60
60
 
61
61
long
77
77
        long val
78
78
        )
79
79
{
80
 
  *((*bufpp)++) = (val >> 8) & 0xFF;
81
 
  *((*bufpp)++) =  val       & 0xFF;
 
80
  *((*bufpp)++) = (unsigned char)((val >> 8) & 0xFF);
 
81
  *((*bufpp)++) = (unsigned char)( val       & 0xFF);
82
82
}
83
83
 
84
84
long
102
102
        long val
103
103
        )
104
104
{
105
 
  *((*bufpp)++) = (val >> 24) & 0xFF;
106
 
  *((*bufpp)++) = (val >> 16) & 0xFF;
107
 
  *((*bufpp)++) = (val >> 8 ) & 0xFF;
108
 
  *((*bufpp)++) =  val        & 0xFF;
 
105
  *((*bufpp)++) = (unsigned char)((val >> 24) & 0xFF);
 
106
  *((*bufpp)++) = (unsigned char)((val >> 16) & 0xFF);
 
107
  *((*bufpp)++) = (unsigned char)((val >> 8 ) & 0xFF);
 
108
  *((*bufpp)++) = (unsigned char)( val        & 0xFF);
109
109
}
110
110
 
111
111
/*