~ubuntu-branches/ubuntu/saucy/nfs-utils/saucy

« back to all changes in this revision

Viewing changes to support/export/export.c

  • Committer: Steve Langasek
  • Date: 2013-05-30 21:04:32 UTC
  • mfrom: (71.1.1 ubuntu)
  • Revision ID: steve.langasek@canonical.com-20130530210432-3en1hx9okm5s8cci
Confirm Debian merge from Stéphane.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
                export_allowed_internal(const struct addrinfo *ai,
32
32
                                const char *path);
33
33
 
 
34
void
 
35
exportent_release(struct exportent *eep)
 
36
{
 
37
        xfree(eep->e_squids);
 
38
        xfree(eep->e_sqgids);
 
39
        free(eep->e_mountpoint);
 
40
        free(eep->e_fslocdata);
 
41
        free(eep->e_uuid);
 
42
        xfree(eep->e_hostname);
 
43
}
 
44
 
34
45
static void
35
46
export_free(nfs_export *exp)
36
47
{
37
 
        xfree(exp->m_export.e_squids);
38
 
        xfree(exp->m_export.e_sqgids);
39
 
        free(exp->m_export.e_mountpoint);
40
 
        free(exp->m_export.e_fslocdata);
41
 
        free(exp->m_export.e_uuid);
42
 
 
43
 
        xfree(exp->m_export.e_hostname);
 
48
        exportent_release(&exp->m_export);
44
49
        xfree(exp);
45
50
}
46
51
 
357
362
static int 
358
363
export_hash(char *str)
359
364
{
360
 
        int num = strtoint(str);
 
365
        unsigned int num = strtoint(str);
361
366
 
362
367
        return num % HASH_TABLE_SIZE;
363
368
}