2000-04-06 Timur Bakeyev <mc@bat.ru>

* ftpfs.c (netrc_next): Turned strange "const char * const keywords"
	into more alike "const char const * keywords". Still, think, it's
	too strict.

	* smbfs.c: Add #define BOOL_DEFINED before inclusion of samba headers.
	Libncurses(or slang?) defines BOOL and that can cause problems. (In fact,
	I can't find references to that const, but sure, I hade reason to do that:)

	* util-alone.h: Declare load_anon_passwd() to avoid warnings.
This commit is contained in:
Timur Bakeyev 2000-04-09 23:06:59 +00:00
parent b192f71a88
commit 3bfe8a0b3c
4 changed files with 21 additions and 2 deletions

View File

@ -1,4 +1,16 @@
2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>
2000-04-06 Timur Bakeyev <mc@bat.ru>
* ftpfs.c (netrc_next): Turned strange "const char * const keywords"
into more alike "const char const * keywords". Still, think, it's
too strict.
* smbfs.c: Add #define BOOL_DEFINED before inclusion of samba headers.
Libncurses(or slang?) defines BOOL and that can cause problems. (In fact,
I can't find references to that const, but sure, I hade reason to do that:)
* util-alone.h: Declare load_anon_passwd() to avoid warnings.
2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>
* vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
crushes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>

View File

@ -1715,7 +1715,7 @@ static int netrc_next (void)
{
char *p;
int i;
static const char * const keywords [] = { "default", "machine",
static const char const * keywords [] = { "default", "machine",
"login", "password", "passwd", "account", "macdef" };
while (1) {

View File

@ -29,6 +29,7 @@
confilcts with definitions in other includes */
#undef HAVE_LIBREADLINE
#define NO_CONFIG_H
#define BOOL_DEFINED
#include "samba/include/includes.h"
#include <string.h>

View File

@ -0,0 +1,6 @@
#ifndef _UTIL_ALONE_H_
#define _UTIL_ALONE_H_
char *load_anon_passwd (void);
#endif