From 75c2a31ddbe337af46ec4dad8a4dbbbd790c47b7 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 12 Jan 2010 14:12:04 -0500 Subject: tweak stap argument checking * main.cxx (checkOptions): Inline into main(), abeam other option checks. --- main.cxx | 60 ++++++++++++++++++++++-------------------------------------- 1 file changed, 22 insertions(+), 38 deletions(-) (limited to 'main.cxx') diff --git a/main.cxx b/main.cxx index 265fb363..1baced14 100644 --- a/main.cxx +++ b/main.cxx @@ -410,43 +410,6 @@ void parse_kernel_config (systemtap_session &s) kcf.close(); } - -static void -checkOptions (systemtap_session &s) -{ - bool optionsConflict = false; - - if((s.cmd != "") && (s.target_pid)) - { - cerr << "You can't specify -c and -x options together." < 4 && -- cgit