Changeset 24f195


Ignore:
Timestamp:
02/05/12 00:49:30 (4 months ago)
Author:
Erik Ekman <erik@…>
Branches:
master
Children:
242416
Parents:
423cbe
git-author:
Erik Ekman <erik@…> (02/05/12 00:49:30)
git-committer:
Erik Ekman <erik@…> (02/05/12 00:49:30)
Message:

Rename user struct to fix ubuntu arm build failure

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/user.c

    ra56903 r24f195  
    3434#include "user.h" 
    3535 
    36 struct user *users; 
     36struct tun_user *users; 
    3737unsigned usercount; 
    3838 
     
    6060        usercount = MIN(maxusers, USERS); 
    6161         
    62         users = calloc(usercount, sizeof(struct user)); 
     62        users = calloc(usercount, sizeof(struct tun_user)); 
    6363        for (i = 0; i < usercount; i++) { 
    6464                in_addr_t ip; 
  • src/user.h

    ra56903 r24f195  
    3434/* Max advisable: 36/2 = 18. Total mem usage: QMEMDATA_LEN * USERS * 6 bytes */ 
    3535 
    36 struct user { 
     36struct tun_user { 
    3737        char id; 
    3838        int active; 
     
    7474}; 
    7575 
    76 extern struct user *users; 
     76extern struct tun_user *users; 
    7777 
    7878int init_users(in_addr_t, int); 
Note: See TracChangeset for help on using the changeset viewer.