aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-04-14 14:39:16 +0000
committerWerner Koch <[email protected]>2010-04-14 14:39:16 +0000
commit53c636c4c666ab27440fb4a866bf0ae32f0aa517 (patch)
treeac6d1e065b3f65bec63484d636c1ed0b19dbf8d1 /g10/gpg.c
parentWhole lot of changes to support CE. (diff)
downloadgnupg-53c636c4c666ab27440fb4a866bf0ae32f0aa517.tar.gz
gnupg-53c636c4c666ab27440fb4a866bf0ae32f0aa517.zip
./autogen.sh --build-w32ce does now succeed.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 9f5a51540..0d94969df 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -1242,7 +1242,7 @@ rm_group(char *name)
Returns true if the item is unsafe. */
static int
-check_permissions(const char *path,int item)
+check_permissions (const char *path, int item)
{
#if defined(HAVE_STAT) && !defined(HAVE_DOSISH_SYSTEM)
static int homedir_cache=-1;
@@ -1428,9 +1428,11 @@ check_permissions(const char *path,int item)
return ret;
-#endif /* HAVE_STAT && !HAVE_DOSISH_SYSTEM */
-
+#else /*!(HAVE_STAT && !HAVE_DOSISH_SYSTEM)*/
+ (void)path;
+ (void)item;
return 0;
+#endif /*!(HAVE_STAT && !HAVE_DOSISH_SYSTEM)*/
}
@@ -4028,8 +4030,10 @@ main (int argc, char **argv)
if( argc > 1 )
wrong_args(_("[filename]"));
/* Issue some output for the unix newbie */
- if( !fname && !opt.outfile && isatty( fileno(stdin) )
- && isatty( fileno(stdout) ) && isatty( fileno(stderr) ) )
+ if (!fname && !opt.outfile
+ && gnupg_isatty (fileno (stdin))
+ && gnupg_isatty (fileno (stdout))
+ && gnupg_isatty (fileno (stderr)))
log_info(_("Go ahead and type your message ...\n"));
a = iobuf_open(fname);