summaryrefslogtreecommitdiff
path: root/gdb/inftarg.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-09 18:30:32 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-09 18:30:32 +0000
commitcf0396f62d4a996a788bf15632d59f46476da6b5 (patch)
tree13d17da3bdffb70ad993bc6cfef63cb37d879a0a /gdb/inftarg.c
parentc27bdee1cd22bf097ccf987f2b13d6e70c2759b8 (diff)
downloadgdb-cf0396f62d4a996a788bf15632d59f46476da6b5.tar.gz
2003-01-09 Andrew Cagney <ac131313@redhat.com>
* somsolib.h: Fix function indentation. * disasm.c, buildsym.c, buildsym.h: Eliminate PTR. * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ. * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ. * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ. * somsolib.c, inftarg.c: Remove assignment in if conditional.
Diffstat (limited to 'gdb/inftarg.c')
-rw-r--r--gdb/inftarg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inftarg.c b/gdb/inftarg.c
index 471eb3cc7b5..e12e8bd529a 100644
--- a/gdb/inftarg.c
+++ b/gdb/inftarg.c
@@ -649,7 +649,8 @@ _initialize_inftarg (void)
#define PROC_NAME_FMT "/proc/%05d"
#endif
sprintf (procname, PROC_NAME_FMT, getpid ());
- if ((fd = open (procname, O_RDONLY)) >= 0)
+ fd = open (procname, O_RDONLY);
+ if (fd >= 0)
{
close (fd);
return;