diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-11-12 19:52:11 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-11-12 19:52:11 +0000 |
commit | 3f4a68cdaec79e1ae22287ad11954a60afcc5ac7 (patch) | |
tree | b7bab8418a50cfa988f446e042c56a433feacf41 | |
parent | bc12482932a6771566c7dcabc53f34e6297510f2 (diff) | |
download | gdbm-3f4a68cdaec79e1ae22287ad11954a60afcc5ac7.tar.gz gdbm-3f4a68cdaec79e1ae22287ad11954a60afcc5ac7.tar.bz2 |
Minor fixes.
* src/Makefile.am: Use libgdbm_la_LIBADD, not just LIBADD.
* src/testgdbm.c: Declare some function parameters with const qualifiers.
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/testgdbm.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 15a5840..1c55a4e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,7 +34,7 @@ VI_REVISION = 0 VI_AGE = 0 lib_LTLIBRARIES = libgdbm.la -LIBADD = @LTLIBINTL@ +libgdbm_la_LIBADD = @LTLIBINTL@ libgdbm_la_SOURCES = \ gdbmopen.c\ diff --git a/src/testgdbm.c b/src/testgdbm.c index 409fe9a..94a1829 100644 --- a/src/testgdbm.c +++ b/src/testgdbm.c @@ -52,7 +52,7 @@ int data_z = 1; /* Data are nul-terminated strings */ void -error (int code, char *fmt, ...) +error (int code, const char *fmt, ...) { va_list ap; if (!interactive) @@ -74,7 +74,7 @@ bucket_print_lines (hash_bucket *bucket) /* Debug procedure to print the contents of the current hash bucket. */ void -print_bucket (FILE *fp, hash_bucket *bucket, char *mesg) +print_bucket (FILE *fp, hash_bucket *bucket, const char *mesg) { int index; |