fix compiler failure do to taking out crash submission code
authorWilliam Douglas <william.douglas@intel.com>
Thu, 24 May 2012 21:40:10 +0000 (14:40 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Thu, 24 May 2012 21:40:10 +0000 (14:40 -0700)
Signed-off-by: William Douglas <william.douglas@intel.com>
src/corewatcher.c
src/submit.c

index 724fdc7..5dc83bd 100644 (file)
@@ -67,7 +67,6 @@ static void usage(const char *name)
        fprintf(stderr, "Usage: %s [OPTIONS...]\n", name);
        fprintf(stderr, "  -n, --nodaemon  Do not daemonize, run in foreground\n");
        fprintf(stderr, "  -d, --debug     Enable debug mode\n");
-       fprintf(stderr, "  -a, --always    Always send core dumps\n");
        fprintf(stderr, "  -t, --test      Do not send anything\n");
        fprintf(stderr, "  -h, --help      Display this help message\n");
 }
@@ -121,10 +120,6 @@ int main(int argc, char**argv)
                        fprintf(stderr, "+ Starting corewatcher in debug mode\n");
                        debug = 1;
                        break;
-               case 'a':
-                       fprintf(stderr, "+ Sending All reports\n");
-                       opted_in = 2;
-                       break;
                case 't':
                        fprintf(stderr, "+ Test mode enabled: not sending anything\n");
                        break;
@@ -136,7 +131,7 @@ int main(int argc, char**argv)
                }
        }
 
-       if (!opted_in && !testmode) {
+       if (!testmode) {
                fprintf(stderr, "+ Inactive by user preference\n");
                return EXIT_SUCCESS;
        }
index bb404c7..a5078c6 100644 (file)
@@ -220,11 +220,10 @@ static void submit_queue_with_url(struct oops *queue, char *wsubmit_url, char *p
                        CURLFORM_COPYNAME, "data",
                        CURLFORM_COPYCONTENTS, oops->text, CURLFORM_END);
 
-               if (allow_distro_to_pass_on) {
-                       curl_formadd(&post, &last,
-                               CURLFORM_COPYNAME, "pass_on_allowed",
-                               CURLFORM_COPYCONTENTS, "yes", CURLFORM_END);
-               }
+
+               curl_formadd(&post, &last,
+                            CURLFORM_COPYNAME, "pass_on_allowed",
+                            CURLFORM_COPYCONTENTS, "yes", CURLFORM_END);
 
                curl_easy_setopt(handle, CURLOPT_HTTPPOST, post);
                curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, writefunction);