+2000-06-26 Ken Raeburn <raeburn@mit.edu>
+
+ * dbtest.c (err): Add format attribute to decl, for typechecking
+ under GNU C.
+
1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
* dbtest.c (main): POSIX states that getopt returns -1
enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA };
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+#define ATTR(x) __attribute__(x)
+#else
+#define ATTR(x)
+#endif
+
void compare __P((DBT *, DBT *));
DBTYPE dbtype __P((char *));
void dump __P((DB *, int));
-void err __P((const char *, ...));
+void err __P((const char *, ...)) ATTR ((__format__(__printf__,1,2)));
void get __P((DB *, DBT *));
void getdata __P((DB *, DBT *, DBT *));
void put __P((DB *, DBT *, DBT *));