diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2008-07-09 18:06:39 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2008-07-09 18:06:39 -0400 |
commit | 26de79f7a2b4db7c123f43cca0d01f5a505103d5 (patch) | |
tree | ef4f1ee1b7ab73a763f04c3beb4b6d8f0e42e466 /translate.cxx | |
parent | 1027502bf8cae522bac37847931a05feceae96d1 (diff) | |
download | systemtap-steved-26de79f7a2b4db7c123f43cca0d01f5a505103d5.tar.gz systemtap-steved-26de79f7a2b4db7c123f43cca0d01f5a505103d5.tar.xz systemtap-steved-26de79f7a2b4db7c123f43cca0d01f5a505103d5.zip |
Slightly cleanup code of translate.cxx
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/translate.cxx b/translate.cxx index e9dff3c7..557c2f12 100644 --- a/translate.cxx +++ b/translate.cxx @@ -3134,8 +3134,7 @@ c_unparser::visit_comparison (comparison* e) if (e->left->type == pe_string) { - if (e->left->type != pe_string || - e->right->type != pe_string) + if (e->right->type != pe_string) throw semantic_error ("expected string types", e->tok); o->line() << "strncmp ("; @@ -3147,8 +3146,7 @@ c_unparser::visit_comparison (comparison* e) } else if (e->left->type == pe_long) { - if (e->left->type != pe_long || - e->right->type != pe_long) + if (e->right->type != pe_long) throw semantic_error ("expected numeric types", e->tok); o->line() << "(("; @@ -4424,7 +4422,7 @@ emit_symbol_data (systemtap_session& s) // so parse /proc/kallsyms. ifstream kallsyms("/proc/kallsyms"); - string lastaddr, modules_op_addr; + string lastaddr; kallsyms_out << "struct _stp_symbol _stp_kernel_symbols [] = {"; while (! kallsyms.eof()) |