~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/length.cc

Merging Monty's build fixes from jay-captain-fixes.

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