diff options
author | Jeremy Allison <jra@samba.org> | 2002-08-27 16:48:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-08-27 16:48:58 +0000 |
commit | c3d707b0882044816e7626b291fccdc56df33848 (patch) | |
tree | dced4e7928efc219aadfb1246b73de0cd4eec160 /source3/client | |
parent | 797af9369bd78b5ba0e121dd88c5d11f5341479f (diff) | |
download | samba-c3d707b0882044816e7626b291fccdc56df33848.tar.gz samba-c3d707b0882044816e7626b291fccdc56df33848.tar.bz2 samba-c3d707b0882044816e7626b291fccdc56df33848.zip |
Remove strsep - non portable.
Jeremy.
(This used to be commit 03c49b2e519acb8cc7278ac97a203a7d122d2869)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/smbmnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c index ba2b1e9435..ce406179cf 100644 --- a/source3/client/smbmnt.c +++ b/source3/client/smbmnt.c @@ -148,8 +148,8 @@ do_mount(char *share_name, unsigned int flags, struct smb_mount_data *data) uname(&uts); release = uts.release; - major = strsep(&release, "."); - minor = strsep(&release, "."); + major = strtok(release, "."); + minor = strtok(NULL, "."); if (major && minor && atoi(major) == 2 && atoi(minor) < 4) { /* < 2.4, assume struct */ data1 = (char *) data; |