diff options
author | Bill Meier <wmeier@newsguy.com> | 2014-02-25 15:42:35 -0500 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2014-02-25 20:46:49 +0000 |
commit | 11b5c15fdb815a2af400bfddef944dbac41a434a (patch) | |
tree | e7217ebcff4d4d9f7f95d0342b6776547e5537c3 /epan/golay.c | |
parent | c55c57ad72acda8cbce2841bc237f966bad5ae5b (diff) |
Remove trailing whitespace
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0
Reviewed-on: https://code.wireshark.org/review/385
Reviewed-by: Bill Meier <wmeier@newsguy.com>
Tested-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/golay.c')
-rw-r--r-- | epan/golay.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/golay.c b/epan/golay.c index b805700fdf..84c6b0d3a3 100644 --- a/epan/golay.c +++ b/epan/golay.c @@ -169,7 +169,7 @@ gint32 golay_errors(guint32 codeword) syndrome = received_parity ^ (golay_coding(received_data)); w = weight12(syndrome); - + /* * The properties of the golay code are such that the Hamming distance (ie, * the minimum distance between codewords) is 8; that means that one bit of @@ -184,14 +184,14 @@ gint32 golay_errors(guint32 codeword) if( w <= 3 ) { return ((gint32) syndrome)<<12; } - + /* the next thing to try is one error in the data bits. * we try each bit in turn and see if an error in that bit would have given * us anything like the parity bits we got. At this point, we tolerate two * errors in the parity bits, but three or more errors would give a total * error weight of 4 or more, which means it's actually uncorrectable or * closer to another codeword. */ - + for( i = 0; i<12; i++ ) { guint error = 1<<i; guint coding_error = golay_encode_matrix[i]; @@ -237,7 +237,7 @@ gint32 golay_errors(guint32 codeword) /* uncorrectable error */ return -1; } - + /* decode a received codeword. Up to 3 errors are corrected for; 4 @@ -249,7 +249,7 @@ gint golay_decode(guint32 w) guint data = (guint)w & 0xfff; gint32 errors = golay_errors(w); guint data_errors; - + if( errors == -1 ) return -1; data_errors = (guint)errors & 0xfff; |