mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
nbis: prefix global variables with "g_"
It fixes a lot of warnings about shadowing global variable https://bugs.freedesktop.org/show_bug.cgi?id=56439
This commit is contained in:
committed by
Bastien Nocera
parent
9e10edd422
commit
5d32102efe
@@ -69,8 +69,8 @@ int match_1st_pair(unsigned char p1, unsigned char p2,
|
||||
/* Foreach set of feature pairs ... */
|
||||
for(i = 0; i < NFEATURES; i++){
|
||||
/* If current scan pair matches first pair for feature ... */
|
||||
if((p1==feature_patterns[i].first[0]) &&
|
||||
(p2==feature_patterns[i].first[1])){
|
||||
if((p1==g_feature_patterns[i].first[0]) &&
|
||||
(p2==g_feature_patterns[i].first[1])){
|
||||
/* Store feature as a possible match. */
|
||||
possible[*nposs] = i;
|
||||
/* Bump number of stored possibilities. */
|
||||
@@ -117,8 +117,8 @@ int match_2nd_pair(unsigned char p1, unsigned char p2,
|
||||
/* Foreach possible match based on first pair ... */
|
||||
for(i = 0; i < tnposs; i++){
|
||||
/* If current scan pair matches second pair for feature ... */
|
||||
if((p1==feature_patterns[possible[i]].second[0]) &&
|
||||
(p2==feature_patterns[possible[i]].second[1])){
|
||||
if((p1==g_feature_patterns[possible[i]].second[0]) &&
|
||||
(p2==g_feature_patterns[possible[i]].second[1])){
|
||||
/* Store feature as a possible match. */
|
||||
possible[*nposs] = possible[i];
|
||||
/* Bump number of stored possibilities. */
|
||||
@@ -160,8 +160,8 @@ int match_3rd_pair(unsigned char p1, unsigned char p2,
|
||||
/* Foreach possible match based on first and second pairs ... */
|
||||
for(i = 0; i < tnposs; i++){
|
||||
/* If current scan pair matches third pair for feature ... */
|
||||
if((p1==feature_patterns[possible[i]].third[0]) &&
|
||||
(p2==feature_patterns[possible[i]].third[1])){
|
||||
if((p1==g_feature_patterns[possible[i]].third[0]) &&
|
||||
(p2==g_feature_patterns[possible[i]].third[1])){
|
||||
/* Store feature as a possible match. */
|
||||
possible[*nposs] = possible[i];
|
||||
/* Bump number of stored possibilities. */
|
||||
|
||||
Reference in New Issue
Block a user