From: Jason Stover Date: Fri, 14 Oct 2005 15:13:59 +0000 (+0000) Subject: Replaced use of errno with assert X-Git-Tag: v0.6.0~1192 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b7805829c01dec0507bc2afac9c6bfbf25c957;p=pspp-builds.git Replaced use of errno with assert --- diff --git a/src/regression.q b/src/regression.q index d6ebc520..ba413a06 100644 --- a/src/regression.q +++ b/src/regression.q @@ -495,18 +495,8 @@ run_regression (const struct casefile *cf, void *cmd_) */ if (is_depvar (i)) { - if (v->type == NUMERIC) - { - gsl_vector_set (Y, row, val->f); - } - else - { - errno = EINVAL; - fprintf (stderr, - "%s:%d: Dependent variable should be numeric: %s\n", - __FILE__, __LINE__, strerror (errno)); - err_cond_fail (); - } + assert(v->type == NUMERIC); + gsl_vector_set (Y, row, val->f); } else {