~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql-common/pack.c

  • Committer: Stewart Smith
  • Date: 2008-07-09 01:40:54 UTC
  • mfrom: (105 drizzle)
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: stewart@flamingspork.com-20080709014054-xfgfzirbhqzrzkkj
mergeĀ fromĀ mainline

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);