libctf: fix tabdamage
authorNick Alcock <nick.alcock@oracle.com>
Thu, 26 Sep 2019 14:26:48 +0000 (15:26 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 3 Oct 2019 16:04:56 +0000 (17:04 +0100)
A little tabdamage predating the linker patch series has crept in.

New in v5.

libctf/
* ctf-open.c (ctf_bufopen_internal): Fix tabdamage.
* ctf-types.c (ctf_type_lname): Likewise.

libctf/ChangeLog
libctf/ctf-open.c
libctf/ctf-types.c

index 982c3355699d306244879a441a67ebffd1f5e809..27652b89af7424d5d68d668000bcab252ec761ac 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-30  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (ctf_bufopen_internal): Fix tabdamage.
+       * ctf-types.c (ctf_type_lname): Likewise.
+
 2019-09-23  Nick Alcock  <nick.alcock@oracle.com>
 
        * ctf-open.c (ctf_import): Do not leak a ctf_file_t ref on every
index aedf39086a2d288c3299260eaef15363a2a520b0..7fb289af5654164a0d6d7e28690ff54fc5689c49 100644 (file)
@@ -1542,8 +1542,8 @@ ctf_bufopen_internal (const ctf_sect_t *ctfsect, const ctf_sect_t *symsect,
       (err = flip_ctf (hp, fp->ctf_buf)) != 0)
     {
       /* We can be certain that flip_ctf() will have endian-flipped everything
-         other than the types table when we return.  In particular the header
-         is fine, so set it, to allow freeing to use the usual code path.  */
+        other than the types table when we return.  In particular the header
+        is fine, so set it, to allow freeing to use the usual code path.  */
 
       ctf_set_base (fp, hp, fp->ctf_base);
       goto bad;
index 27cbfb94d00bc748e93375d3c480c1ef80e3eb8b..b0139e82bd75e9a272016883a5f0156dda5bb58e 100644 (file)
@@ -441,7 +441,7 @@ ctf_type_lname (ctf_file_t *fp, ctf_id_t type, char *buf, size_t len)
   size_t slen;
 
   if (str == NULL)
-    return CTF_ERR;             /* errno is set for us */
+    return CTF_ERR;                    /* errno is set for us.  */
 
   slen = strlen (str);
   snprintf (buf, len, "%s", str);
This page took 0.026661 seconds and 4 git commands to generate.