fixed compiler warnings on OpenSolaris

PERMISSION_HANDLING_BRANCH
Jean-Pierre André 2010-04-19 11:10:01 +02:00
parent 984be554e3
commit b1c051b768
2 changed files with 8 additions and 0 deletions

View File

@ -283,7 +283,9 @@ int restore_privs(void);
* therefore the below functions are no-op in such case.
*/
static int drop_privs(void) { return 0; }
#if defined(linux) || defined(__uClinux__)
static int restore_privs(void) { return 0; }
#endif
static const char *setuid_msg =
"Mount is denied because setuid and setgid root ntfs-3g is insecure with the\n"
@ -4271,7 +4273,9 @@ int main(int argc, char *argv[])
{
char *parsed_options = NULL;
struct fuse_session *se;
#if !(defined(__sun) && defined (__SVR4))
fuse_fstype fstype = FSTYPE_UNKNOWN;
#endif
const char *permissions_mode = (const char*)NULL;
const char *failed_secure = (const char*)NULL;
struct stat sbuf;

View File

@ -241,7 +241,9 @@ int restore_privs(void);
* therefore the below functions are no-op in such case.
*/
static int drop_privs(void) { return 0; }
#if defined(linux) || defined(__uClinux__)
static int restore_privs(void) { return 0; }
#endif
static const char *setuid_msg =
"Mount is denied because setuid and setgid root ntfs-3g is insecure with the\n"
@ -4235,7 +4237,9 @@ int main(int argc, char *argv[])
{
char *parsed_options = NULL;
struct fuse *fh;
#if !(defined(__sun) && defined (__SVR4))
fuse_fstype fstype = FSTYPE_UNKNOWN;
#endif
const char *permissions_mode = (const char*)NULL;
const char *failed_secure = (const char*)NULL;
struct stat sbuf;