Author: tjansen Date: Fri Oct 30 11:56:37 2009 New Revision: 1448 Log: Fix -Wshadow warnings: common.c: In function ‘itoa’: common.c:135: warning: declaration of ‘i’ shadows a previous local common.c:117: warning: shadowed declaration is here common.c: In function ‘convert_time_t_to_formatted_string’: common.c:213: warning: declaration of ‘time’ shadows a global declaration /usr/include/time.h:186: warning: shadowed declaration is here Modified: trunk/pairing/common.c Modified: trunk/pairing/common.c ============================================================================== --- trunk/pairing/common.c Fri Oct 30 11:52:32 2009 (r1447) +++ trunk/pairing/common.c Fri Oct 30 11:56:37 2009 (r1448) @@ -132,7 +132,7 @@ // reverse(s); // Orignal; inserted code below { - int c, i, j; + int c, j; for (i = 0, j = strlen(s)-1; i<j; i++, j--) { c = s[i]; @@ -210,12 +210,12 @@ * @return 1 -> Success * @return 0 -> Failure */ -int convert_time_t_to_formatted_string(time_t *time,char *buffer) +int convert_time_t_to_formatted_string(time_t *t, char *buffer) { struct tm *ts; size_t temp; // Convert to format: dd-mm-yyyy hh:mm:ss - ts = localtime(time); + ts = localtime(t); temp = strftime(buffer, LENGTH_TIMEOUT, EXPIRATION_DATE_FORMAT, ts); return temp!=0;