projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-generate many configure and Makefile.in files
[deliverable/binutils-gdb.git]
/
libctf
/
ctf-labels.c
diff --git
a/libctf/ctf-labels.c
b/libctf/ctf-labels.c
index 9b9fffea4ed351ae8223358406f7afa29ac7dca9..1755b9720a61382d8830b7129b4b14a33c360021 100644
(file)
--- a/
libctf/ctf-labels.c
+++ b/
libctf/ctf-labels.c
@@
-43,7
+43,7
@@
ctf_label_topmost (ctf_file_t *fp)
const char *s;
uint32_t num_labels = 0;
const char *s;
uint32_t num_labels = 0;
- if (extract_label_info (fp, &ctlp, &num_labels)
== CTF_ERR
)
+ if (extract_label_info (fp, &ctlp, &num_labels)
< 0
)
return NULL; /* errno is set for us. */
if (num_labels == 0)
return NULL; /* errno is set for us. */
if (num_labels == 0)
@@
-70,8
+70,8
@@
ctf_label_iter (ctf_file_t *fp, ctf_label_f *func, void *arg)
const char *lname;
int rc;
const char *lname;
int rc;
- if (extract_label_info (fp, &ctlp, &num_labels)
== CTF_ERR
)
- return
CTF_ERR;
/* errno is set for us. */
+ if (extract_label_info (fp, &ctlp, &num_labels)
< 0
)
+ return
-1;
/* errno is set for us. */
if (num_labels == 0)
return (ctf_set_errno (fp, ECTF_NOLABELDATA));
if (num_labels == 0)
return (ctf_set_errno (fp, ECTF_NOLABELDATA));
@@
-128,7
+128,7
@@
ctf_label_info (ctf_file_t *fp, const char *lname, ctf_lblinfo_t *linfo)
cb_arg.lca_name = lname;
cb_arg.lca_info = linfo;
cb_arg.lca_name = lname;
cb_arg.lca_info = linfo;
- if ((rc = ctf_label_iter (fp, label_info_cb, &cb_arg))
== CTF_ERR
)
+ if ((rc = ctf_label_iter (fp, label_info_cb, &cb_arg))
< 0
)
return rc;
if (rc != 1)
return rc;
if (rc != 1)
This page took
0.0234799999999999 seconds
and
4
git commands to generate.