]>
Commit | Line | Data |
---|---|---|
3cee5a5c AM |
1 | diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/Makefile samba-3.0.25a/examples/libsmbclient/smbwrapper/Makefile |
2 | --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/Makefile 2006-01-25 00:46:42.000000000 +0100 | |
3 | +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/Makefile 2007-06-17 17:43:30.088457851 +0200 | |
4 | @@ -3,7 +3,7 @@ | |
5 | ||
6 | CFLAGS = -I$(SAMBA_INCL) $(EXTLIB_INCL) | |
7 | ||
f5a05ed7 | 8 | -LDFLAGS = -L/usr/local/samba/lib -L../../../source/bin |
3cee5a5c AM |
9 | +LDFLAGS = -L../../../source/bin |
10 | ||
11 | SMBINCLUDE = -I../../../source/include | |
12 | CFLAGS= -fpic -g -O0 $(DEFS) $(SMBINCLUDE) | |
13 | diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.c samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.c | |
14 | --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.c 2006-01-25 00:46:42.000000000 +0100 | |
15 | +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.c 2007-06-17 17:38:36.620376591 +0200 | |
16 | @@ -548,7 +548,7 @@ | |
17 | /***************************************************** | |
18 | a wrapper for readlink() - needed for correct errno setting | |
19 | *******************************************************/ | |
20 | -int smbw_readlink(const char *fname, char *buf, size_t bufsize) | |
21 | +ssize_t smbw_readlink(const char *fname, char *buf, size_t bufsize) | |
22 | { | |
23 | struct SMBW_stat st; | |
24 | int ret; | |
25 | diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.h samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.h | |
26 | --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/smbw.h 2006-01-25 00:46:42.000000000 +0100 | |
27 | +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/smbw.h 2007-06-17 17:38:36.620376591 +0200 | |
28 | @@ -79,7 +79,7 @@ | |
29 | int smbw_close(int fd); | |
30 | int smbw_fcntl(int fd, int cmd, long arg); | |
31 | int smbw_access(const char *name, int mode); | |
32 | -int smbw_readlink(const char *path, char *buf, size_t bufsize); | |
33 | +ssize_t smbw_readlink(const char *path, char *buf, size_t bufsize); | |
34 | int smbw_unlink(const char *fname); | |
35 | int smbw_rename(const char *oldname, const char *newname); | |
36 | int smbw_utime(const char *fname, void *buf); | |
37 | diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.c samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.c | |
38 | --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.c 2006-01-25 00:46:42.000000000 +0100 | |
39 | +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.c 2007-06-17 17:39:16.085693163 +0200 | |
3cee5a5c AM |
40 | @@ -488,7 +490,7 @@ |
41 | * function and smbw.c et al. Functions that return other than an | |
42 | * integer value, however, MUST have their return value defined. | |
43 | */ | |
44 | - off64_t smbw_lseek(); | |
45 | + /* off64_t smbw_lseek(); */ | |
46 | ||
47 | if (smbw_fd(fd)) { | |
48 | return (off_t) smbw_lseek(fd, offset, whence); | |
49 | @@ -518,7 +520,7 @@ | |
50 | * function and smbw.c et al. Functions that return other than an | |
51 | * integer value, however, MUST have their return value defined. | |
52 | */ | |
53 | - off64_t smbw_lseek(); | |
54 | + /* off64_t smbw_lseek(); */ | |
55 | ||
56 | if (smbw_fd(fd)) | |
57 | ret = smbw_lseek(fd, offset, whence); | |
3cee5a5c AM |
58 | diff -urN samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.h samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.h |
59 | --- samba-3.0.25a.org/examples/libsmbclient/smbwrapper/wrapper.h 2006-01-25 00:46:42.000000000 +0100 | |
60 | +++ samba-3.0.25a/examples/libsmbclient/smbwrapper/wrapper.h 2007-06-17 17:38:36.620376591 +0200 | |
61 | @@ -123,7 +123,7 @@ | |
3ceb7a9c JB |
62 | int (* unlink)(char *name); |
63 | int (* utime)(char *name, struct utimbuf *tvp); | |
64 | int (* utimes)(char *name, struct timeval *tvp); | |
65 | - int (* readlink)(char *path, char *buf, size_t bufsize); | |
66 | + ssize_t (* readlink)(char *path, char *buf, size_t bufsize); | |
67 | int (* rename)(char *oldname, char *newname); | |
68 | int (* rmdir)(char *name); | |
69 | int (* symlink)(char *topath, char *frompath); |