Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Using fsvs as UID 0

fsvs
Discussion topic

Back to topic list

Re: Using fsvs as UID 0

Author pmarek
Full name P.Marek
Date 2007-03-16 10:48:00 PDT
Message Could you please tell me which line crashes fsvs?

Index: checksum.c
====================​====================​====================​=======
--- checksum.c (Revision 743)
+++ checksum.c (Arbeitskopie)
@@ -490,6 +490,7 @@
 {
        int status;
        int i;
+ AC_CV_C_UINT32_T tmp;


        status=0;
@@ -560,9 +561,10 @@
                         * border-checking there. Only here, in this loop,
                         * is the value needed. */
                        mb_f->last_state=​mb_f->state;
- mb_f->state = (mb_f->state*CS__​MANBER_PRIME + data[i] -
- manber_parms.values[ mb_f->backtrack[ mb_f->bktrk_last ] ] )
- % CS__MANBER_MODULUS;
+ tmp=mb_f->backtrack[ mb_f->bktrk_last ];
+ tmp=manber_parms.values[ tmp ];
+ tmp= data[i]-tmp;
+ mb_f->state = (mb_f->state*CS__​MANBER_PRIME + tmp) % CS__MANBER_MODULUS;
                        mb_f->backtrack[ mb_f->bktrk_last ] = data[i];
                        mb_f->bktrk_last = ( mb_f->bktrk_last + 1 ) &
                                (CS__MANBER_BACKTRACK - 1);

Thank you!

Phil

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 30 of 30 | Next message in topic »

Messages

Show all messages in topic

                                                                                                 Re: Using fsvs as UID 0 benjaminm Benjamin M. 2007-03-10 12:02:26 PST
                                                                                                     Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-11 10:38:54 PDT
                                                                                                         Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-12 05:01:26 PDT
                                                                             Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-09 10:43:52 PST
     Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-16 10:48:00 PDT
Page: of 2 « Previous | Next »
Messages per page: