git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0385f7d
)
Remove strsep - non portable.
author
Jeremy Allison
<jra@samba.org>
Tue, 27 Aug 2002 16:48:58 +0000
(16:48 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 27 Aug 2002 16:48:58 +0000
(16:48 +0000)
Jeremy.
source/client/smbmnt.c
patch
|
blob
|
history
diff --git
a/source/client/smbmnt.c
b/source/client/smbmnt.c
index ba2b1e9435d722d0fd8ae3e361f6985b2e0adba5..ce406179cfdd9d71f2e56f0a49f4e9616a52d17c 100644
(file)
--- a/
source/client/smbmnt.c
+++ b/
source/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 = str
sep(&
release, ".");
- minor = str
sep(&release
, ".");
+ major = str
tok(
release, ".");
+ minor = str
tok(NULL
, ".");
if (major && minor && atoi(major) == 2 && atoi(minor) < 4) {
/* < 2.4, assume struct */
data1 = (char *) data;