Permalink
Browse files

Use function pointers instead of "void *" in struct declarations.

  • Loading branch information...
1 parent e79fbfd commit 2661184f3489a582bd6922ecb26197e155863100 @PiotrSikora PiotrSikora committed Jun 21, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/ngx_postgres_module.h
View
@@ -92,14 +92,17 @@ struct ngx_postgres_rewrite_conf_s {
typedef struct {
ngx_str_t name;
ngx_uint_t key;
- void *handler;
+ ngx_postgres_rewrite_handler_pt handler;
} ngx_postgres_rewrite_enum_t;
+typedef ngx_int_t (*ngx_postgres_output_handler_pt)
+ (ngx_http_request_t *, PGresult *, ngx_postgres_value_t *);
+
typedef struct {
ngx_str_t name;
ngx_uint_t args;
unsigned binary:1;
- void *handler;
+ ngx_postgres_output_handler_pt handler;
} ngx_postgres_output_enum_t;
typedef struct {
@@ -147,9 +150,6 @@ typedef struct {
ngx_uint_t reject;
} ngx_postgres_upstream_srv_conf_t;
-typedef ngx_int_t (*ngx_postgres_output_handler_pt)
- (ngx_http_request_t *, PGresult *, ngx_postgres_value_t *);
-
typedef struct {
/* upstream */
ngx_http_upstream_conf_t upstream;

0 comments on commit 2661184

Please sign in to comment.