Skip to content

Commit

Permalink
Removed the useless STRUCT_PLUGIN macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Aug 2, 2006
1 parent 6551bb1 commit de7ab68
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 15 deletions.
2 changes: 0 additions & 2 deletions mailfront.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ struct plugin
const response* (*data_end)(void);
};

#define STRUCT_PLUGIN(NAME) struct plugin plugin

struct protocol
{
const char* name;
Expand Down
2 changes: 1 addition & 1 deletion plugin-accept-recipient.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ static const response* address(str* s)
(void)s;
}

STRUCT_PLUGIN(accept) = {
struct plugin plugin = {
.recipient = address,
};
2 changes: 1 addition & 1 deletion plugin-accept-sender.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ static const response* address(str* s)
(void)s;
}

STRUCT_PLUGIN(accept) = {
struct plugin plugin = {
.sender = address,
};
2 changes: 1 addition & 1 deletion plugin-accept.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static const response* address(str* s)
(void)s;
}

STRUCT_PLUGIN(accept) = {
struct plugin plugin = {
.sender = address,
.recipient = address,
};
2 changes: 1 addition & 1 deletion plugin-add-received.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static const response* data_start(void)
return 0;
}

STRUCT_PLUGIN(add_received) = {
struct plugin plugin = {
.init = init,
.data_start = data_start,
};
2 changes: 1 addition & 1 deletion plugin-check-fqdn.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static const response* either(str* s)
return 0;
}

STRUCT_PLUGIN(check_fqdn) = {
struct plugin plugin = {
.sender = either,
.recipient = either,
};
2 changes: 1 addition & 1 deletion plugin-counters.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static const response* block(const char* bytes, unsigned long len)
return 0;
}

STRUCT_PLUGIN(counters) = {
struct plugin plugin = {
.init = init,
.reset = reset,
.sender = sender,
Expand Down
2 changes: 1 addition & 1 deletion plugin-cvm-validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static const response* validate_recipient(str* recipient)
return r;
}

STRUCT_PLUGIN(cvm_validate) = {
struct plugin plugin = {
.init = validate_init,
.recipient = validate_recipient,
};
2 changes: 1 addition & 1 deletion plugin-mailrules.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static const response* validate_recipient(str* recipient)
return 0;
}

STRUCT_PLUGIN(mailrules) = {
struct plugin plugin = {
.init = init,
.reset = reset,
.sender = validate_sender,
Expand Down
2 changes: 1 addition & 1 deletion plugin-patterns.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static const response* check(const char* bytes, unsigned long len)
return 0;
}

STRUCT_PLUGIN(patterns) = {
struct plugin plugin = {
.data_start = init,
.data_block = check,
};
2 changes: 1 addition & 1 deletion plugin-qmail-validate.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static const response* validate_recipient(str* recipient)
return 0;
}

STRUCT_PLUGIN(backend_validate) = {
struct plugin plugin = {
.init = validate_init,
.sender = validate_sender,
.recipient = validate_recipient,
Expand Down
2 changes: 1 addition & 1 deletion plugin-reject.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ static const response* sender(str* s)
(void)s;
}

STRUCT_PLUGIN(reject) = {
struct plugin plugin = {
.sender = sender,
};
2 changes: 1 addition & 1 deletion plugin-relayclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ static const response* do_recipient(str* recipient)
return 0;
}

STRUCT_PLUGIN(relayclient) = {
struct plugin plugin = {
.recipient = do_recipient,
};
2 changes: 1 addition & 1 deletion plugin-require-auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ static const response* sender(str* s)
(void)s;
}

STRUCT_PLUGIN(require_auth) = {
struct plugin plugin = {
.sender = sender,
};

0 comments on commit de7ab68

Please sign in to comment.