Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix more annoying warnings
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3b93189a998b697ba75ce0a0740b81767b3b21ed
User & Date: brandon 2016-05-27 19:25:37
Context
2016-05-27
19:26
fix bug in setting the number of buckets check-in: f617f59f6b user: brandon tags: trunk
19:25
fix more annoying warnings check-in: 3b93189a99 user: brandon tags: trunk
19:08
clean up some warnings check-in: 3143e34e51 user: brandon tags: trunk
Changes

Changes to src/zdbc.c.

26
27
28
29
30
31
32

33
34

35

36

37
38

39
40

41
42
43

44
45
46
47
48
49
50

static char doc[] =
  "zdbc -- a tool for creating a DBM database";

static char args_doc[] = "DATABASE";

static struct argp_option options[] = {

  {"mmap-size", 'm', "NUM", 0, "The size (in bytes) of the memory-mapped region"
   " to use (default=1024)"},

  {"num-buckets", 'b', "NUM", 0, "The number of buckets to use (default=100)"},

  {"verbose", 'v', 0, 0, "Print extra information."},

  {"sync", 's', 0, 0, "Automatically synchronize all database operations to the"
   " disk"},

  {"no-lock", 'l', 0, 0, "Do not perform any locking of the database file"},
#ifdef HAVE_GDBM

  {"no-mmap", 'n', 0, 0, "Do not memory-map the database file"},
#endif
  {0}

};

struct arguments
{
  char *args[1];
  size_t mmap_size;
  size_t num_buckets;







>
|
<
>
|
>
|
>
|
<
>
|

>
|

<
>







26
27
28
29
30
31
32
33
34

35
36
37
38
39
40

41
42
43
44
45
46

47
48
49
50
51
52
53
54

static char doc[] =
  "zdbc -- a tool for creating a DBM database";

static char args_doc[] = "DATABASE";

static struct argp_option options[] = {
  {"mmap-size",   (int) 'm', "NUM", 0,
   "The size (in bytes) of the memory-mapped region to use (default=1024)", 0},

  {"num-buckets", (int) 'b', "NUM", 0,
   "The number of buckets to use (default=100)", 0},
  {"verbose", (int) 'v', 0, 0,
   "Print extra information.", 0},
  {"sync", (int) 's', 0, 0,
   "Automatically synchronize all database operations to the disk", 0},

  {"no-lock", (int) 'l', 0, 0,
   "Do not perform any locking of the database file", 0},
#ifdef HAVE_GDBM
  {"no-mmap", (int) 'n', 0, 0,
   "Do not memory-map the database file", 0},
#endif

  {0, 0, 0, 0, 0, 0}
};

struct arguments
{
  char *args[1];
  size_t mmap_size;
  size_t num_buckets;