~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql-common/pack.c

  • Committer: Brian Aker
  • Date: 2008-07-07 14:25:25 UTC
  • mto: (77.1.25 codestyle)
  • mto: This revision was merged to the branch mainline in revision 82.
  • Revision ID: brian@tangent.org-20080707142525-xzy2nl3ie2ebwfln
LL() cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
uchar *net_store_length(uchar *packet, ulonglong length)
98
98
{
99
 
  if (length < (ulonglong) LL(251))
 
99
  if (length < (ulonglong) 251LL)
100
100
  {
101
101
    *packet=(uchar) length;
102
102
    return packet+1;
103
103
  }
104
104
  /* 251 is reserved for NULL */
105
 
  if (length < (ulonglong) LL(65536))
 
105
  if (length < (ulonglong) 65536LL)
106
106
  {
107
107
    *packet++=252;
108
108
    int2store(packet,(uint) length);
109
109
    return packet+2;
110
110
  }
111
 
  if (length < (ulonglong) LL(16777216))
 
111
  if (length < (ulonglong) 16777216LL)
112
112
  {
113
113
    *packet++=253;
114
114
    int3store(packet,(ulong) length);