mirror of https://github.com/MidnightCommander/mc
* samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
NULL when appropriative error message can't be found as it is expected in cli_errstr(). Return type changed to const char * * smbfs.c (smbfs_fill_names): implemented (smbfs_stat): unneeded g_strdup/g_free calls removed (smbfs_loaddir): memory leaking fixed * samba/libsmb/clientgen.c (rap_errmap, prots): constified
This commit is contained in:
parent
0d20e2fa8a
commit
6e8cfd807f
|
@ -1,3 +1,16 @@
|
||||||
|
2001-04-09 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
|
||||||
|
NULL when appropriative error message can't be found as it is expected
|
||||||
|
in cli_errstr(). Return type changed to const char *
|
||||||
|
|
||||||
|
* smbfs.c (smbfs_fill_names): implemented
|
||||||
|
|
||||||
|
(smbfs_stat): unneeded g_strdup/g_free calls removed
|
||||||
|
(smbfs_loaddir): memory leaking fixed
|
||||||
|
|
||||||
|
* samba/libsmb/clientgen.c (rap_errmap, prots): constified
|
||||||
|
|
||||||
2001-04-06 Pavel Roskin <proski@gnu.org>
|
2001-04-06 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* Make-mc.in: Use a single variable SAMBA_DIST to hold all
|
* Make-mc.in: Use a single variable SAMBA_DIST to hold all
|
||||||
|
|
|
@ -88,7 +88,7 @@ struct
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
char *message;
|
char *message;
|
||||||
} rap_errmap[] =
|
} const rap_errmap[] =
|
||||||
{
|
{
|
||||||
{5, "User has insufficient privilege" },
|
{5, "User has insufficient privilege" },
|
||||||
{86, "The specified password is invalid" },
|
{86, "The specified password is invalid" },
|
||||||
|
@ -142,7 +142,7 @@ char *cli_errstr(struct cli_state *cli)
|
||||||
|
|
||||||
if (nt_rpc_error)
|
if (nt_rpc_error)
|
||||||
{
|
{
|
||||||
char *nt_msg = get_nt_error_msg(nt_rpc_error);
|
const char *nt_msg = get_nt_error_msg(nt_rpc_error);
|
||||||
|
|
||||||
if (nt_msg == NULL)
|
if (nt_msg == NULL)
|
||||||
{
|
{
|
||||||
|
@ -672,7 +672,7 @@ static struct {
|
||||||
int prot;
|
int prot;
|
||||||
char *name;
|
char *name;
|
||||||
}
|
}
|
||||||
prots[] =
|
const prots[] =
|
||||||
{
|
{
|
||||||
{PROTOCOL_CORE,"PC NETWORK PROGRAM 1.0"},
|
{PROTOCOL_CORE,"PC NETWORK PROGRAM 1.0"},
|
||||||
{PROTOCOL_COREPLUS,"MICROSOFT NETWORKS 1.03"},
|
{PROTOCOL_COREPLUS,"MICROSOFT NETWORKS 1.03"},
|
||||||
|
|
Loading…
Reference in New Issue