~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/pack.c

  • Committer: Brian Aker
  • Date: 2008-07-14 16:09:55 UTC
  • Revision ID: brian@tangent.org-20080714160955-v5nzzyjj5hhv7bz6
Removing a few "additional" ways of saying uint64_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
}
46
46
 
47
47
/* The same as above but returns int64_t */
48
 
my_uint64_t net_field_length_ll(uchar **packet)
 
48
uint64_t net_field_length_ll(uchar **packet)
49
49
{
50
50
  register uchar *pos= *packet;
51
51
  if (*pos < 251)
52
52
  {
53
53
    (*packet)++;
54
 
    return (my_uint64_t) *pos;
 
54
    return (uint64_t) *pos;
55
55
  }
56
56
  if (*pos == 251)
57
57
  {
58
58
    (*packet)++;
59
 
    return (my_uint64_t) NULL_LENGTH;
 
59
    return (uint64_t) NULL_LENGTH;
60
60
  }
61
61
  if (*pos == 252)
62
62
  {
63
63
    (*packet)+=3;
64
 
    return (my_uint64_t) uint2korr(pos+1);
 
64
    return (uint64_t) uint2korr(pos+1);
65
65
  }
66
66
  if (*pos == 253)
67
67
  {
68
68
    (*packet)+=4;
69
 
    return (my_uint64_t) uint3korr(pos+1);
 
69
    return (uint64_t) uint3korr(pos+1);
70
70
  }
71
71
  (*packet)+=9;                                 /* Must be 254 when here */
72
72
#ifdef NO_CLIENT_LONGLONG
73
 
  return (my_uint64_t) uint4korr(pos+1);
 
73
  return (uint64_t) uint4korr(pos+1);
74
74
#else
75
 
  return (my_uint64_t) uint8korr(pos+1);
 
75
  return (uint64_t) uint8korr(pos+1);
76
76
#endif
77
77
}
78
78