diff options
author | Jeff Layton <jlayton@redhat.com> | 2007-09-27 06:53:48 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-09-28 11:39:56 +1000 |
commit | 1cecd88106230fc9a8c3527bcdf4195150e9ad64 (patch) | |
tree | 3bd39cfe875943d46319c045d7de9373c5c5f1a4 /support/include/exportfs.h | |
parent | 1992a667c49cdd83ff7d7414a07225fcf34f0ad2 (diff) | |
download | nfs-utils-1cecd88106230fc9a8c3527bcdf4195150e9ad64.tar.gz nfs-utils-1cecd88106230fc9a8c3527bcdf4195150e9ad64.tar.xz nfs-utils-1cecd88106230fc9a8c3527bcdf4195150e9ad64.zip |
rpc.mountd: Change nfs_client->m_hostname to be a dynamically-allocated string
Change nfs_client->m_hostname to be dynamically allocated rather than a
fixed length array of size NFSCLNT_IDMAX. This also adds a bit of
micro-optimization in a few places since it reduces the amount of string
copying that needs to be done.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'support/include/exportfs.h')
-rw-r--r-- | support/include/exportfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/include/exportfs.h b/support/include/exportfs.h index 431b5ce..a491b1a 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -32,7 +32,7 @@ enum { typedef struct mclient { struct mclient * m_next; - char m_hostname[NFSCLNT_IDMAX+1]; + char * m_hostname; int m_type; int m_naddr; struct in_addr m_addrlist[NFSCLNT_ADDRMAX]; |