File: fix-autopkgtest.patch

package info (click to toggle)
emmax 0~beta.20100307-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 568 kB
  • sloc: ansic: 9,936; makefile: 91; sh: 60
file content (34 lines) | stat: -rw-r--r-- 1,579 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Fixes autopkgtest on other archs
 There seems to be an issue with comparing a char and an int with the
 value -1. Using an int to store the parameter of getopt fixes the
 problems with the switch statement always hitting the default case.
Author: Mohammed Bilal <mdbilal@disroot.org>
Forwarded: not-needed
Last-Update: 2022-09-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/emmax-kin.c
+++ b/emmax-kin.c
@@ -61,7 +61,8 @@
   int i, j, k, n, ac0, ac1,  nmiss, nelems, nex, *nexes;
   int verbose, ndigits, tped_nheadercols, tfam_nheadercols, flag_autosomal, rand_fill_flag, ibs_flag, gz_flag, hetero_division_flag;
   unsigned char *snprow;
-  char buf[SZBUF], c;
+  char buf[SZBUF];
+  int c;
   double f, denom;
   //long *fibs_sums, *scores, mean_score;
   double *fibs_sums, *scores, mean_score;
--- a/emmax.c
+++ b/emmax.c
@@ -100,8 +100,8 @@
 
 int main(int argc, char** argv) {
   int i, j, k, l, n, nf, q0, ngrids, ndigits, istart, iend, nelems, nmiss, *wids;
-  char *kinf, *phenof, *tpedf, *covf, *outf, *inf, *delims, *lbuf, c;
-  int mphenoflag, write_eig_flag, gz_flag, tped_nheadercols, tfam_nheadercols, zero_miss_flag, isnpid, gen_kin_method, dosage_flag, gls_flag;
+  char *kinf, *phenof, *tpedf, *covf, *outf, *inf, *delims, *lbuf;
+  int mphenoflag, write_eig_flag, gz_flag, tped_nheadercols, tfam_nheadercols, zero_miss_flag, isnpid, gen_kin_method, dosage_flag, gls_flag, c;
   double *phenos, *covs, *kins, *snps;
   double sum, llim, ulim, stat, p;
   clock_t cstart, cend, sum0, sum1, sum2, clapstart, clapend;