]> granicus.if.org Git - strace/commitdiff
Rename xlookup64 to xlookup
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 14 May 2016 21:55:35 +0000 (21:55 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 14 May 2016 22:05:09 +0000 (22:05 +0000)
* defs.h (xlookup): Remove.
(xlookup64): Rename to xlookup.
* util.c (xlookup64): Rename to xlookup.

defs.h
util.c

diff --git a/defs.h b/defs.h
index 04dcb83c0e8cf831409939f532b1c4b254c1eb7b..1e2afa764944be2c387f556ffe4a762c0a6c7fb1 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -542,7 +542,7 @@ extern void pathtrace_select(const char *);
 extern int pathtrace_match(struct tcb *);
 extern int getfdpath(struct tcb *, int, char *, unsigned);
 
-extern const char *xlookup64(const struct xlat *, const uint64_t);
+extern const char *xlookup(const struct xlat *, const uint64_t);
 extern const char *xlat_search(const struct xlat *, const size_t, const uint64_t);
 
 extern unsigned long get_pagesize(void);
@@ -713,12 +713,6 @@ printxval(const struct xlat *x, const unsigned int val, const char *dflt)
        printxvals(val, dflt, x, NULL);
 }
 
-static inline const char *
-xlookup(const struct xlat *x, const unsigned int val)
-{
-       return xlookup64(x, val);
-}
-
 /* Strace log generation machinery.
  *
  * printing_tcp: tcb which has incomplete line being printed right now.
diff --git a/util.c b/util.c
index b0757a837219bf3c9b7e9518b54b22f45b2929d1..f197d094c8630e2718d92987744c8d68f487da11 100644 (file)
--- a/util.c
+++ b/util.c
@@ -121,7 +121,7 @@ tv_mul(struct timeval *tv, const struct timeval *a, int n)
 }
 
 const char *
-xlookup64(const struct xlat *xlat, const uint64_t val)
+xlookup(const struct xlat *xlat, const uint64_t val)
 {
        for (; xlat->str != NULL; xlat++)
                if (xlat->val == val)