isearly() should take int, not unsigned, for ewin arg
authorfcusack <fcusack>
Wed, 2 Nov 2005 07:24:21 +0000 (07:24 +0000)
committerfcusack <fcusack>
Wed, 2 Nov 2005 07:24:21 +0000 (07:24 +0000)
src/modules/rlm_otp/cardops/cryptocard.c
src/modules/rlm_otp/cardops/cryptocard.h
src/modules/rlm_otp/otp_cardops.h

index ec19135..ec59d61 100644 (file)
@@ -269,7 +269,7 @@ __attribute__ ((unused))
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
-                   unsigned ewin,
+                   int ewin,
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
index daab3c8..e5aaba8 100644 (file)
@@ -54,7 +54,7 @@ static int cryptocard_response(otp_user_info_t *, char *, const char *,
 static int cryptocard_updatecsd(const otp_user_info_t *, otp_user_state_t *,
                                 const char [OTP_MAX_CHALLENGE_LEN + 1],
                                 unsigned, time_t, int, const char *);
-static int cryptocard_isearly(const otp_user_state_t *, time_t, unsigned,
+static int cryptocard_isearly(const otp_user_state_t *, time_t, int,
                               const char *);
 static int cryptocard_nexttwin(int);
 static int cryptocard_maxtwin(const otp_user_info_t *,
index f885dd8..96999e6 100644 (file)
@@ -79,7 +79,7 @@ typedef struct cardops_t {
   int (*updatecsd)(const otp_user_info_t *, otp_user_state_t *,
                    const char [OTP_MAX_CHALLENGE_LEN + 1],
                    unsigned, time_t, int, const char *);
-  int (*isearly)(const otp_user_state_t *, time_t, unsigned, const char *);
+  int (*isearly)(const otp_user_state_t *, time_t, int, const char *);
   int (*nexttwin)(int);
   int (*maxtwin)(const otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1],
                  time_t);