summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/stapio.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-04-22 12:45:08 -0400
committerMartin Hunt <hunt@redhat.com>2008-04-22 12:45:08 -0400
commitab70160be701d5b89157ea15754fd0ded830a970 (patch)
treedae246c813ba1f6c41c3e1a62acb6c25a1ea3ce2 /runtime/staprun/stapio.c
parentb965da8f3c53958af08bf7f57718265713cebb0a (diff)
downloadsystemtap-steved-ab70160be701d5b89157ea15754fd0ded830a970.tar.gz
systemtap-steved-ab70160be701d5b89157ea15754fd0ded830a970.tar.xz
systemtap-steved-ab70160be701d5b89157ea15754fd0ded830a970.zip
Move send_request out of common.c because staprun no longer sends anything.
Diffstat (limited to 'runtime/staprun/stapio.c')
-rw-r--r--runtime/staprun/stapio.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/staprun/stapio.c b/runtime/staprun/stapio.c
index 70e40004..b591244f 100644
--- a/runtime/staprun/stapio.c
+++ b/runtime/staprun/stapio.c
@@ -27,7 +27,6 @@ char *__name__ = "stapio";
int main(int argc, char **argv)
{
setup_signals();
-
parse_args(argc, argv);
if (buffer_size)
@@ -38,13 +37,13 @@ int main(int argc, char **argv)
dbug(2, "modpath=\"%s\", modname=\"%s\"\n", modpath, modname);
}
- if (optind < argc) {
+ if (optind < argc) {
if (attach_mod) {
err("ERROR: Cannot have module options with attach (-A).\n");
usage(argv[0]);
} else {
- unsigned start_idx = 3; /* reserve three slots in modoptions[] */
- while (optind < argc && start_idx+1 < MAXMODOPTIONS)
+ unsigned start_idx = 3; /* reserve three slots in modoptions[] */
+ while (optind < argc && start_idx + 1 < MAXMODOPTIONS)
modoptions[start_idx++] = argv[optind++];
modoptions[start_idx] = NULL;
}
@@ -57,7 +56,7 @@ int main(int argc, char **argv)
if (init_stapio())
exit(1);
-
+
if (stp_main_loop()) {
err("ERROR: Couldn't enter main loop. Exiting.\n");
exit(1);