diff Meerwald/signature.c @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +0200
parents acb6967ee76d
children
line wrap: on
line diff
--- a/Meerwald/signature.c	Wed Apr 16 15:55:52 2008 +0200
+++ b/Meerwald/signature.c	Tue Apr 22 13:36:05 2008 +0200
@@ -36,7 +36,7 @@
   return _get_signature_bit(signature2, NSIGNATURE, n);
 }
 
-void _set_signature_bit(char *s, int lim, int n, int v) {
+void _set_signature_bit(char *s, int limit, int n, int v) {
   int byte = n >> 3;
   int bit = n & 7;
 
@@ -83,15 +83,15 @@
 }
 
 int binstr_to_sig(const char *binstr) {
-  _binstr_to_sig(binstr, signature, &n_signature, &nbit_signature);
+  return _binstr_to_sig(binstr, signature, &n_signature, &nbit_signature);
 }
 
 int binstr_to_sig1(const char *binstr) {
-  _binstr_to_sig(binstr, signature1, &n_signature1, &nbit_signature1);
+  return _binstr_to_sig(binstr, signature1, &n_signature1, &nbit_signature1);
 }
 
 int binstr_to_sig2(const char *binstr) {
-  _binstr_to_sig(binstr, signature2, &n_signature2, &nbit_signature2);
+  return _binstr_to_sig(binstr, signature2, &n_signature2, &nbit_signature2);
 }
 
 int _sig_to_binstr(char *binstr, char *sig, int bits) {

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.