diff options
author | Pedro Alves <palves@redhat.com> | 2013-02-14 17:09:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-02-14 17:09:00 +0000 |
commit | 57c3b6ede58a103b97baa10bef7d9d9031d2269b (patch) | |
tree | 6edf764e3b43b65853bd747c3b39c610b7d3cbf2 /bfd/cpu-aarch64.c | |
parent | 420f4384af4aac17ca68d8834519f18d6dbe0ee6 (diff) | |
download | gdb-57c3b6ede58a103b97baa10bef7d9d9031d2269b.zip gdb-57c3b6ede58a103b97baa10bef7d9d9031d2269b.tar.gz gdb-57c3b6ede58a103b97baa10bef7d9d9031d2269b.tar.bz2 |
savestring: Rename parameter 'size' to 'len'.
It's better to avoid needless confusion, and call string length,
length, instead of size, which is usually used to refer to sizeof of
the string (len+1):
size_t len = strlen (str);
size_t size = sizeof (str);
Tested on x86_64 Fedora 17.
2013-02-14 Pedro Alves <palves@redhat.com>
* utils.c (savestring): Rename parameter 'size' to 'len'.
Diffstat (limited to 'bfd/cpu-aarch64.c')
0 files changed, 0 insertions, 0 deletions