cleanup unused parameter warnings
[mech_eap.git] / util_ordering.c
index c58ac6c..71ebfb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  */
 
 /*
- * $Id: util_ordering.c 23457 2009-12-08 00:04:48Z tlyu $
- */
-
-/*
- * functions to check sequence numbers for replay and sequencing
+ * Functions to check sequence numbers for replay and sequencing
  */
 
 #include "gssapiP_eap.h"
@@ -156,6 +152,8 @@ sequenceCheck(OM_uint32 *minor,
     int i;
     uint64_t expected;
 
+    *minor = 0;
+
     q = (queue *) (*vqueue);
 
     if (!q->do_replay && !q->do_sequence)
@@ -245,6 +243,7 @@ sequenceFree(OM_uint32 *minor, void **vqueue)
 
     *vqueue = NULL;
 
+    *minor = 0;
     return GSS_S_COMPLETE;
 }
 
@@ -252,7 +251,7 @@ sequenceFree(OM_uint32 *minor, void **vqueue)
  * These support functions are for the serialization routines
  */
 size_t
-sequenceSize(void *vqueue)
+sequenceSize(void *vqueue GSSEAP_UNUSED)
 {
     return sizeof(queue);
 }
@@ -283,7 +282,7 @@ sequenceInternalize(OM_uint32 *minor,
     void *q;
 
     if (*lenremain < sizeof(queue)) {
-        *minor = GSSEAP_WRONG_SIZE;
+        *minor = GSSEAP_TOK_TRUNC;
         return GSS_S_DEFECTIVE_TOKEN;
     }