~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/length.cc

  • Committer: Brian Aker
  • Date: 2009-07-23 00:02:03 UTC
  • mfrom: (1093.1.25 captain)
  • Revision ID: brian@gaz-20090723000203-kkrx4udjiiwy869o
Mege Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
using std::cerr;
14
14
using std::flush;
15
15
 
16
 
void print_usage_and_exit(char *prog) {
 
16
static void print_usage_and_exit(char *prog) {
17
17
  const char *name= strrchr(prog, '/');
18
18
  if (name)
19
19
    ++name;
26
26
  exit(1);
27
27
}
28
28
 
29
 
void encode(int argc, char *argv[], int verbose_level, bool hex_output) {
 
29
static void encode(int argc, char *argv[], int verbose_level, bool hex_output)
 
30
{
30
31
  for (int i = 0 ; i < argc ; ++i) {
31
32
    size_t length = strtoul(argv[i], NULL, 0);
32
33
 
55
56
}
56
57
 
57
58
 
58
 
void decode(int argc, char *argv[], int verbose_level, bool hex_output) {
 
59
static void decode(int argc, char *argv[], int verbose_level, bool hex_output)
 
60
{
59
61
  unsigned char buf[128];
60
62
  for (int i = 0 ; i < argc ; ++i)
61
63
    buf[i]= strtoul(argv[i], NULL, 0);