From bde581776ee3d20d2fcd52c8bbc943abf3e4ca89 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 9 Jan 2003 18:30:32 +0000 Subject: 2003-01-09 Andrew Cagney * 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. --- gdb/inftarg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/inftarg.c') diff --git a/gdb/inftarg.c b/gdb/inftarg.c index 471eb3c..e12e8bd 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; -- cgit v1.1