library.c:641:78: warning: variable 'p2' set but not used (please review)