[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.c
raeburn
raeburn at source.lon-capa.org
Sun Apr 28 20:22:49 EDT 2024
raeburn Mon Apr 29 00:22:49 2024 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.c
Log:
- Eliminate unused-variable warnings in caparesponse_get_real_response
function when compiling caparesponse.c on Fedora 40.
Index: loncom/homework/caparesponse/caparesponse.c
diff -u loncom/homework/caparesponse/caparesponse.c:1.21 loncom/homework/caparesponse/caparesponse.c:1.22
--- loncom/homework/caparesponse/caparesponse.c:1.21 Mon Apr 29 00:16:11 2024
+++ loncom/homework/caparesponse/caparesponse.c Mon Apr 29 00:22:49 2024
@@ -1,6 +1,6 @@
/* The LearningOnline Network with CAPA
* CAPA wrapper code
- * $Id: caparesponse.c,v 1.21 2024/04/29 00:16:11 raeburn Exp $
+ * $Id: caparesponse.c,v 1.22 2024/04/29 00:22:49 raeburn Exp $
*
* Copyright Michigan State University Board of Trustees
*
@@ -135,11 +135,10 @@
double* scaled) {
//double caparesponse_get_real_response (char* unit_str, char* answer) {
int input_len,all_alphabet,idx,outcome=-1,result;
- double n_part,scale=1.0,given,target;
+ ouble n_part,scale=1.0,given;
char input[ANSWER_STRING_LENG],filename[FILE_NAME_LENGTH],
tmp_unit_str[ANSWER_STRING_LENG];
Unit_t *ans_unit;
- long seed1,seed2;
FILE *fp;
sprintf(filename,"/home/httpd/html/res/adm/includes/capa.units");
if ((fp=fopen(filename,"r"))==NULL) {
More information about the LON-CAPA-cvs
mailing list