projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdbserver/linux-low: turn fast tracepoint ops into methods
[deliverable/binutils-gdb.git]
/
libiberty
/
spaces.c
diff --git
a/libiberty/spaces.c
b/libiberty/spaces.c
index 6df0b13f0d24b8a2a1bde8a1d8b492772d69010f..d97390b2ddce15721479afaaaae00ba062d9e101 100644
(file)
--- a/
libiberty/spaces.c
+++ b/
libiberty/spaces.c
@@
-1,5
+1,5
@@
/* Allocate memory region filled with spaces.
/* Allocate memory region filled with spaces.
- Copyright (C) 1991 Free Software Foundation, Inc.
+ Copyright (C) 1991
-2020
Free Software Foundation, Inc.
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
This file is part of the libiberty library.
Libiberty is free software; you can redistribute it and/or
@@
-14,8
+14,8
@@
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with libiberty; see the file COPYING.LIB. If
You should have received a copy of the GNU Library General Public
License along with libiberty; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
-Boston, MA 0211
1-1307
, USA. */
+not, write to the Free Software Foundation, Inc., 5
1 Franklin Street - Fifth Floor
,
+Boston, MA 0211
0-1301
, USA. */
/*
/*
@@
-29,6
+29,9
@@
valid until at least the next call.
*/
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "ansidecl.h"
#include "libiberty.h"
#include "ansidecl.h"
#include "libiberty.h"
@@
-50,11
+53,8
@@
spaces (int count)
if (count > maxsize)
{
if (count > maxsize)
{
- if (buf)
- {
- free (buf);
- }
- buf = malloc (count + 1);
+ free (buf);
+ buf = (char *) malloc (count + 1);
if (buf == (char *) 0)
return 0;
for (t = buf + count ; t != buf ; )
if (buf == (char *) 0)
return 0;
for (t = buf + count ; t != buf ; )
This page took
0.031069 seconds
and
4
git commands to generate.