diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-10-18 23:47:49 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-10-18 23:57:30 +0300 |
commit | 01022a35bfed28d33de9b8930068db41e487bb15 (patch) | |
tree | a33cbc2c5287346f5748d57cc02dacddb9f42dc3 | |
parent | 1a11eccc579d75f4db62fce3e2ab8b709c60da51 (diff) | |
download | vmod-binlog-01022a35bfed28d33de9b8930068db41e487bb15.tar.gz vmod-binlog-01022a35bfed28d33de9b8930068db41e487bb15.tar.bz2 |
Minor improvement.
* src/err.h (error,packerror): Mark as printflike.
* doc/binlogsel.1: Update.
-rw-r--r-- | doc/binlogsel.1 | 10 | ||||
-rw-r--r-- | src/err.h | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/doc/binlogsel.1 b/doc/binlogsel.1 index ec7bd24..eb7bc3a 100644 --- a/doc/binlogsel.1 +++ b/doc/binlogsel.1 | |||
@@ -13,7 +13,7 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with vmod-binlog. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with vmod-binlog. If not, see <http://www.gnu.org/licenses/>. |
16 | .TH BINLOGSEL 1 "October 17, 2013" "BINLOGSEL" "User Reference" | 16 | .TH BINLOGSEL 1 "October 18, 2013" "BINLOGSEL" "User Reference" |
17 | .SH NAME | 17 | .SH NAME |
18 | binlogsel \- select records from binary logs | 18 | binlogsel \- select records from binary logs |
19 | .SH SYNOPSIS | 19 | .SH SYNOPSIS |
@@ -178,6 +178,14 @@ Show program version and exit. | |||
178 | .B \-v | 178 | .B \-v |
179 | Print information about each file before dumping it. | 179 | Print information about each file before dumping it. |
180 | .SH LOADABLE MODULES | 180 | .SH LOADABLE MODULES |
181 | Symbols exported from a loadable module must begin with | ||
182 | \fImodname\fB_LTX_\fR, where \fImodname\fR stands for the name of the | ||
183 | module without suffix (\fB.so\fR, \fB.la\fR, etc.). In the discussion | ||
184 | below, the symbols | ||
185 | .B binlogsel | ||
186 | looks for are listed without this prefix. Thus, for example, if the | ||
187 | module name is \fBstats.so\fR, the name of the module initialization | ||
188 | function must be \fBstats_LTX_init\fR. | ||
181 | .TP | 189 | .TP |
182 | .BI "void init(char *" param ", void (*" addfn ")(const char *, const char *, const char *));" | 190 | .BI "void init(char *" param ", void (*" addfn ")(const char *, const char *, const char *));" |
183 | .B [OPTIONAL] | 191 | .B [OPTIONAL] |
@@ -17,6 +17,8 @@ | |||
17 | extern const char *progname; | 17 | extern const char *progname; |
18 | 18 | ||
19 | void setprogname(const char *); | 19 | void setprogname(const char *); |
20 | void error(const char *fmt, ...); | 20 | void error(const char *fmt, ...) |
21 | void packerror(const char *fmt, ...); | 21 | __attribute__ ((__format__ (__printf__, 1, 2))); |
22 | void packerror(const char *fmt, ...) | ||
23 | __attribute__ ((__format__ (__printf__, 1, 2))); | ||
22 | void version(void); | 24 | void version(void); |