1
0

patch-lib_libfec_c 669 B

1234567891011121314151617181920
  1. --- mtd-utils-1.5.0.orig/lib/libfec.c 2012-05-07 09:19:39.000000000 +0200
  2. +++ mtd-utils-1.5.0/lib/libfec.c 2014-03-30 15:49:26.000000000 +0200
  3. @@ -61,8 +61,6 @@ struct timeval {
  4. };
  5. #define gettimeofday(x, dummy) { (x)->ticks = clock() ; }
  6. #define DIFF_T(a,b) (1+ 1000000*(a.ticks - b.ticks) / CLOCKS_PER_SEC )
  7. -typedef unsigned long u_long ;
  8. -typedef unsigned short u_short ;
  9. #else /* typically, unix systems */
  10. #include <sys/time.h>
  11. #define DIFF_T(a,b) \
  12. @@ -625,7 +623,7 @@ init_fec(void)
  13. #define FEC_MAGIC 0xFECC0DEC
  14. struct fec_parms {
  15. - u_long magic ;
  16. + unsigned long magic ;
  17. int k, n ; /* parameters of the code */
  18. gf *enc_matrix ;
  19. } ;