Andrew Borodin
f683bc78a7
Ticket #1933 (samba: fixup for builds with tcc)
...
Removed obsolete checks for header glob.h
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-01-03 11:09:26 +00:00
Enrico Weigelt, metux IT service
c47852cbfe
vfs/smb: removed own obsolete and broken substitution of strchr
2010-01-02 16:29:24 +01:00
Enrico Weigelt, metux IT service
3e034c77ac
vfs/smb: configure script fixups (for breaks on -Werror)
2010-01-02 16:27:36 +01:00
Enrico Weigelt, metux IT service
304d876d5a
Ticket #1915 : vfs/smb: fixed breakage on strcpy()/strcat()
2010-01-02 16:27:36 +01:00
Slava Zanko
cbdf86f4f8
Removed calls to strerror() function from own libsamba implementation.
...
Please remember: own libsamba will dropped in near time (we will use libsmbclient instead)
Therefore no need to much changes in own deprecated code.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-02 07:11:01 +01:00
Enrico Weigelt, metux IT service
f6637e4871
Ticket #1780 : removing own declaration of errno and strerror()
2010-01-02 07:11:01 +01:00
Enrico Weigelt, metux IT service
551ac003a4
Ticket #1788 : remove obsolete checks for <pwd.h> and <grp.h>
...
remove obsolete checks for <pwd.h> and <grp.h>
Signed-off-by: Enrico Weigelt, metux IT service <weigelt@metux.de>
2009-12-15 18:00:02 +03:00
Enrico Weigelt, metux IT service
2b4f8103ce
Ticket #1786 : remove obsolete check for <sys/wait.h>
...
remove obsolete check for <sys/wait.h>
This file is C standard, so no explicit check necessary.
Signed-off-by: Enrico Weigelt <weigelt@metux.de>
2009-12-15 17:20:36 +03:00
Enrico Weigelt, metux IT service
e9b01c6400
Ticket #1787 : remove obsolete checks for <stdlib.h>
2009-12-13 05:29:35 +01:00
Enrico Weigelt, metux IT service
294f58e85d
Ticket #1783 : remove own declaration of bzero()
2009-12-12 21:06:40 +01:00
Enrico Weigelt, metux IT service
c99db81350
Ticket #1782 : Remove own declaration of ftruncate()
2009-12-12 21:01:46 +01:00
Enrico Weigelt, metux IT service
996029c3e6
Ticket #1784 : remove own declaration of strdup
2009-12-12 20:59:08 +01:00
Enrico Weigelt, metux IT service
91a5df442f
Dropping non-strftime() support and fixing -Werror problem
...
Problem:
a) when running ./configure, strftime() and other functions cannot be
properly detected, since autoconf generates crappy test code, which
at least fails when warnings are treated as errors (gcc: -Werror).
b) strtime() is standard since C89, so we can simply expect it to exists
(if there's *really* some acient box out there breaking mc build,
it's libc/toolchain should be fixed ;-p)
Solution:
Remove the checks for strftime() and all workarounds
2009-11-09 13:49:56 +01:00
Slava Zanko
dd94068a62
Ticket #1649 : Prepare for prerelease mc-4.7.0-pre3 (code cleanup)
...
Try to compile with
{{{
make CFLAGS="-Wall -Werror -Wno-long-long -Wwrite-strings"
}}}
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 16:42:11 +03:00
Enrico Weigelt, metux IT service
b09a107190
further include file fixups
2009-06-18 21:02:29 +04:00
Enrico Weigelt, metux IT service
c7d04dd47a
fixed several missing #include's
2009-06-18 21:02:29 +04:00
Enrico Weigelt, metux IT service
463a18623d
removed obsolete own memmove implementation ( #242 )
2009-02-03 19:51:01 +01:00
Patrick Winnertz
dcd57a34ef
Removed .cvsignore files as we don't need them any longer
2009-01-05 16:58:44 +01:00
Pavel Roskin
76d78fb47c
* samba/lib/netmask.c: Include <stdlib.h> for exit() and
...
<string.h> for memcpy().
2005-11-15 21:32:07 +00:00
Pavel Roskin
89eb1e232b
* samba/lib/netmask.c: Add get_netmask() prototype for the dummy
...
version.
2005-11-11 06:19:08 +00:00
Pavel Roskin
9c11cf292f
* samba/lib/util_sock.c: Fix warnings on 64-bit systems.
2005-11-11 02:52:41 +00:00
Andrew V. Samoilov
8491ac0c7d
* samba/lib/util.c (tab_depth): Remove.
...
* samba/include/byteorder.h: Remove all macroces with tab_depth().
* vfs/samba/lib/util_sock.c: Comment out read_smb_length(),
send_null_session_msg(), send_one_packet(), send_smd()
and read_smb_length().
* vfs/samba/libsmb/nmblib.c: Comment out copy_nmb_packet(),
copy_dgram_packet(), copy_packet() and nmb_name_equal().
2005-09-15 12:07:17 +00:00
Roland Illig
5ddb6be28e
* samba/*: Added many const qualifiers to properly fix the
...
warnings emitted by gcc with -Wwrite-strings.
* smbfs.c: Likewise.
2005-09-07 07:33:39 +00:00
Roland Illig
2841a5087f
Added const qualifiers.
2005-09-05 03:26:48 +00:00
Roland Illig
040e26b5eb
* samba/: Added a const qualifier to setup_logging().
...
* smbfs.c: Removed dbghdr_wrapper. Removed all const_cast
instances.
2005-09-05 03:17:03 +00:00
Roland Illig
e132a00192
Added const qualifiers and type casts for <ctype.h> functions.
2005-07-31 21:09:29 +00:00
Roland Illig
ee4987bb5d
* samba: Added some const qualifiers to reduce the number of gcc
...
warnings.
2005-07-31 21:01:26 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
ba0cd89c75
* samba/lib/charcnv.c: Added const qualifiers.
2005-05-24 12:16:41 +00:00
Roland Illig
d62c0470e3
* samba/param/loadparm.c: Fixed warnings reported by gcc-2.95.
2005-05-24 09:14:53 +00:00
Pavel Roskin
0ef41beb95
* samba/lib/util_sock.c: Fix gcc 4.0 warnings.
2005-05-11 20:03:41 +00:00
Pavel Roskin
b3bc70e73a
* samba/lib/debug.c (dbghdr): Constify arguments file and func.
2005-05-11 19:54:59 +00:00
Pavel Roskin
79386c0add
* samba/include/includes.h: Don't include grp.h twice.
2005-05-10 20:46:40 +00:00
Andrew V. Samoilov
cef3ce222a
* samba/param/loadparm.c: Remove init_locals(), lp_smb_passwd_file(),
...
lp_passwd_program(), lp_passwd_chat(), lp_unix_password_sync(),
lp_max_open_files(), lp_shmem_size(), lp_lpqcachetime(),
lp_syslog(), lp_driverlocation().
(file_lists): Commented out.
(add_to_file_list): Comment out and make a do nothing macro.
2005-03-29 15:20:51 +00:00
Andrew V. Samoilov
b75b3a042a
amba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
...
toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub(),
strnorm(), strisnormal() and split_at_last_component().
* samba/lib/time.c: Comment out http_timestring().
* samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
case_preserve, use_mangled_map, short_case_preserve, case_mangle,
my_netbios_names.
Make sam_logon_in_ssb and case_default const.
(samlogon_user): Make char* instead of pstring.
* samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
and cli_message_end().
* samba/libsmb/namequery.c (global_in_nmbd): Make const.
(find_master_ip): Comment out.
* samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
name_query_comp() and sort_query_replies().
2005-02-15 13:19:35 +00:00
Andrew V. Samoilov
999e265b23
* samba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
...
toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub()
and split_at_last_component().
* samba/lib/time.c: Comment out http_timestring().
* samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
case_preserve, use_mangled_map, short_case_preserve, case_mangle,
my_netbios_names.
Make sam_logon_in_ssb and case_default const.
(samlogon_user): Make char* instead of pstring.
* samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
and cli_message_end().
* samba/libsmb/namequery.c (global_in_nmbd): Make const.
(find_master_ip): Comment out.
* samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
name_query_comp() and sort_query_replies().
2005-02-14 13:14:01 +00:00
Andrew V. Samoilov
9ca4fc2bc0
* samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include
...
<unistd.h> to fix gcc 3.3 warnings about undeclared close().
2005-02-11 23:39:58 +00:00
Andrew V. Samoilov
94b71a6339
* samba/include/proto.h: Adjust for the last changes.
...
* samba/lib/util.c: Comment out unused ra_type, in_group(),
get_numlist(), Atoic(), dns_to_netbios_name(), name_interpret(),
directory_exist(), file_size(), unix_format(), dos_format(),
close_low_fds(), name_ptr(), name_extract(), unix_do_match(),
unix_mask_match(), do_match(), mask_match(),
interpret_protocol(), readdirname(), is_in_path(),
set_namearray(), free_namearray(), fcntl_lock(), is_myname(),
set_remote_arch(), get_remote_arch(). align2(), out_ascii() and
out_data().
(reg_get_subkey): Remove.
(reg_split_key): Remove.
* samba/lib/system.c: Comment out sys_lstat(), sys_fseek(),
sys_ftell(), sys_readdir(), sys_getwd(), sys_chown(), sys_random()
and sys_srandom().
* samba/libsmb/clientgen.c (cli_qpathinfo): Comment out.
(cli_qpathinfo2): Comment out.
(cli_printjob_del): Remove.
(cli_print_queue): Remove.
(cli_dskattr): Comment out.
2005-02-02 12:52:33 +00:00
Andrew V. Samoilov
a7a42c3d8b
* samba/lib/username.c (map_username): Comment out.
...
(user_in_list): Ditto.
2005-02-01 12:02:34 +00:00
Andrew V. Samoilov
fe0cc18988
* samba/Makefile.in: Remove BINDIR and SBINDIR.
...
* samba/param/loadparm.c: Comment out some more unused code.
2005-01-25 09:12:17 +00:00
Andrew V. Samoilov
82a3bf3d81
* samba/param/loadparm.c (print_parameter): Remove.
...
(is_default): Remove.
(dump_globals): Remove.
(dump_a_service): Remove.
(lp_dump): Remove.
(lp_dump_one): Remove.
(lp_remove_service): Remove.
(lp_copy_service): Remove.
2005-01-25 08:13:07 +00:00
Andrew V. Samoilov
a1502a0a5f
Remove genrand.c and util_unistr.c.
2005-01-20 16:48:36 +00:00
Andrew V. Samoilov
981d02ba5f
* Makefile.am (SAMBA_DIST): Remove lib/genrand.c and lib/util_unistr.c.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/genrand.o and
lib/util_unistr.o.
2005-01-20 16:44:27 +00:00
Andrew V. Samoilov
1ed4f8c110
* samba/libsmb/clientgen.c (cli_oem_change_password): Removed.
...
* samba/libsmb/smbencrypt.c (make_oem_passwd_hash): Removed.
* samba/lib/util_sock.c (reset_globals_after_fork): Removed.
2005-01-20 16:32:23 +00:00
Andrew V. Samoilov
eaca209b7c
* util_file.c: Comment out all but fgets_slash().
2005-01-20 15:06:29 +00:00
Andrew V. Samoilov
4ea1aba1e0
* samba/lib/util.c (remote_machine, local_machine): Make static const
...
char * instead of fstring.
2005-01-20 11:23:07 +00:00
Andrew V. Samoilov
43414d8182
* samba/lib/util.c: Comment out some more unused functions.
...
(global_myworkgroup): Remove unused variable.
(def_finfo): Make const.
(remote_proto, remote_arch): Make const char * instead of
fstring.
* samba/libsmb/clientgen.c (interpret_long_filename): Fix
def_finfo declaration.
2005-01-20 08:57:22 +00:00
Andrew V. Samoilov
6478efd184
* samba/lib/util.c (tmpdir): Use MC_TMPDIR environment variable.
...
(automount_lookup): More secure code.
2004-08-20 21:05:02 +00:00
Andrew V. Samoilov
ae73b0a065
* configure.ac: Remove AC_STRUCT_ST_RDEV and AC_CHECK_FUNCS (strpbrk).
2004-03-07 06:45:31 +00:00
Andrew V. Samoilov
b55db9788b
* samba/lib/debug.c (Debug1): Don't try to open/create logfile if debugf is empty string.
2004-03-07 06:40:28 +00:00