Changeset 165 for branches/samba-3.0/source/utils/smbtree.c
- Timestamp:
- Mar 11, 2009, 9:14:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/utils/smbtree.c
r1 r165 32 32 /* Holds a list of workgroups or servers */ 33 33 34 struct name_list {35 struct name_list *prev, *next;34 struct smb_name_list { 35 struct smb_name_list *prev, *next; 36 36 pstring name, comment; 37 37 uint32 server_type; 38 38 }; 39 39 40 static struct name_list *workgroups, *servers, *shares;41 42 static void free_name_list(struct name_list *list)40 static struct smb_name_list *workgroups, *servers, *shares; 41 42 static void free_name_list(struct smb_name_list *list) 43 43 { 44 44 while(list) … … 49 49 const char *comment, void *state) 50 50 { 51 struct name_list **name_list = (structname_list **)state;52 struct name_list *new_name;53 54 new_name = SMB_MALLOC_P(struct name_list);51 struct smb_name_list **name_list = (struct smb_name_list **)state; 52 struct smb_name_list *new_name; 53 54 new_name = SMB_MALLOC_P(struct smb_name_list); 55 55 56 56 if (!new_name) … … 200 200 static BOOL print_tree(struct user_auth_info *user_info) 201 201 { 202 struct name_list *wg, *sv, *sh;202 struct smb_name_list *wg, *sv, *sh; 203 203 204 204 /* List workgroups */
Note:
See TracChangeset
for help on using the changeset viewer.