summaryrefslogtreecommitdiffstats
path: root/source/libsmb/clidgram.c
Commit message (Collapse)AuthorAgeFilesLines
* BIG patch...Andrew Bartlett2003-01-021-2/+2
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* Fixed dumb typo caught by Herb.Jeremy Allison2002-02-271-1/+1
| | | | Jeremy.
* bcopy must DIE ! Stop people creeping use of bcopy back into the codeJeremy Allison2002-02-261-1/+1
| | | | | (and yes I know who you are..... :-). Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Removed fprintf(stderr, ...); calls which should not be present in libraryTim Potter2002-01-141-4/+0
| | | | functions.
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-1/+1
| | | | Jeremy.
* Got serious about const again.Jeremy Allison2001-11-041-4/+4
| | | | | | | REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in.... They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure it's not being used correctly.... Jeremy.
* fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef ↵Andrew Tridgell2001-06-251-1/+1
| | | | instead of a define
* Further recasts to sockaddr * rather than sockaddr_in *Richard Sharpe2001-05-171-3/+3
|
* Fix some errors uncovered in libsmbclient by the test suiteRichard Sharpe2001-02-261-5/+15
| | | | | Fix some problems with unused variables and reaching the end of a nonvoid function
* Change code around and add retry to deal with the occassional loss of ↵Richard Sharpe2001-02-191-62/+73
| | | | NetBIOS datagrams responses, either via TDB or direct receive ...
* Fixes to libsmbclient so it will work when browsing real Windows systems whichRichard Sharpe2001-02-181-17/+26
| | | | | | only respond to port 138 when dealing with NetBIOS datagrams. We use the unexpected packed database.
* Excise snprintf -> slprintf.Jeremy Allison2001-02-161-0/+5
| | | | | | | srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy.
* Remove an inet_aton so that this code will compile on Solaris ...Richard Sharpe2001-01-251-5/+3
| | | | Ahhh, the sweet smell of portability.
* rpc_server/srv_samr.c:Jeremy Allison2001-01-111-1/+3
| | | | | | | | | | | | smbd/reply.c: Added fix needed for appliances. When using winbindd - a new user may exist (from winbind) but have no home directory. Extend add user script so it is called with a %H substitution when a user exists but their home directory does not. Thanks to Alex Win at VA Linux for finding this one and testing the fix. libsmb/clidgram.c: Fixed missing return statements. smbd/uid.c: Fixed typo in debug. Jeremy.
* Get rid of 10.0.0.6 and replace it with 0.0.0.0 as my_ip address prior toRichard Sharpe2001-01-071-4/+2
| | | | sending datagrams in clidgram.c
* Add a new file clidgram with routines that are used by the libsmbclient code.Richard Sharpe2001-01-031-0/+239
These routines handle the sending of dgrams in ways that don't bind us to the nmbd code, but we may merge the two routines at some stage. Also fix Makefile.in so the new code is compiled ... Let's see whether or not it compiles on other architectures ... Seems OK under Linux.