Skip to content

Commit

Permalink
acl.c: Fixing minor signed/unsigned type conflicts and typo in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
versat committed Jul 23, 2018
1 parent dc51c70 commit efff0e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
int acl_add(plist_t *rules, char *spec, enum acl_t acl) {
struct in_addr source;
network_t *aux;
int i, mask = 32;
int mask = 32;
size_t i;
char *tmp;

if (rules == NULL)
Expand Down Expand Up @@ -95,12 +96,12 @@ int acl_add(plist_t *rules, char *spec, enum acl_t acl) {
* is allowed (such is the case with no ACLs).
*
* Proper policy should always end with a default rule,
* targetting either "*" or "0/0" to explicitly express
* targeting either "*" or "0/0" to explicitly express
* one's intentions.
*/
enum acl_t acl_check(plist_t rules, struct in_addr naddr) {
network_t *aux;
int mask;
unsigned int mask;

while (rules) {
aux = (network_t *)rules->aux;
Expand Down

0 comments on commit efff0e7

Please sign in to comment.