Commit 8b416d3c authored by Tommi Rantala's avatar Tommi Rantala

Remove some unused variables

parent 4e13e6d0
......@@ -322,8 +322,7 @@ void AttachedProbe::attach_uprobe()
void AttachedProbe::attach_usdt(int pid)
{
struct bcc_usdt_location loc = {};
int err, i;
std::ostringstream offset_str;
int err;
void *ctx;
if (pid)
......
......@@ -103,7 +103,6 @@ void list_probes(const std::string &search)
return;
}
std::set<std::string> matches;
size_t loc;
while (std::getline(file, line))
{
......
......@@ -5,7 +5,6 @@
namespace bpftrace {
inline std::string GetProviderFromPath(std::string path) {
std::string provider;
int i = path.rfind("/");
return (i != std::string::npos) ? path.substr(i + 1) : path;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment