summaryrefslogtreecommitdiffstats
path: root/source3/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 (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
* Fixed dumb typo caught by Herb.Jeremy Allison2002-02-271-1/+1
| | | | | Jeremy. (This used to be commit f7c980d61439f42395a457a5b99b28f526cabe69)
* 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. (This used to be commit 330b0df960329bcf4696b8fa4a7357e6c456f74e)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Removed fprintf(stderr, ...); calls which should not be present in libraryTim Potter2002-01-141-4/+0
| | | | | functions. (This used to be commit e69a22290e5c923f31223906461df4874e3b2aac)
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-1/+1
| | | | | Jeremy. (This used to be commit 01ff6ce4963e1daff019f2b936cef218e1c93f67)
* 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. (This used to be commit b1930abb35dee74f858a3f7190276c418af2322b)
* 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 (This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)
* Further recasts to sockaddr * rather than sockaddr_in *Richard Sharpe2001-05-171-3/+3
| | | | (This used to be commit b0ba25e22d101acbe4079bc81759a4e0c8a7e6d8)
* 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 (This used to be commit 44986f397ae647aa790422737a839443efb99920)
* 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 ... (This used to be commit 54b0fbe98b1cbb1d9d62606c16921dbffc3a3c6d)
* 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. (This used to be commit 620cc34015ab16d25f7ef7e13cbc3d0f669da11e)
* 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. (This used to be commit d938ad6963a2dd4eda930d508600ec1902dc2b16)
* Remove an inet_aton so that this code will compile on Solaris ...Richard Sharpe2001-01-251-5/+3
| | | | | Ahhh, the sweet smell of portability. (This used to be commit 09902d2d4a51b134190861fbb3ddaabcae5bc1bb)
* 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. (This used to be commit 7ba0a2192b89954604dd793c537b4a17c2d1ac07)
* 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 (This used to be commit 4c540393b33a5c49adafcc9320f591490b97192a)
* 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. (This used to be commit f7466ba67cb6f863ee495e6de884e9b7a2e49430)