Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jul 2004 10:08:13 GMT
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 58290 for review
Message-ID:  <200407271008.i6RA8Duc030087@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=58290

Change 58290 by des@des.at.des.thinksec.com on 2004/07/27 10:07:13

	Remove an unnecessary cast, obviating the need for <stdint.h> which
	apparently isn't present on some platforms (e.g. Solaris 8)

Affected files ...

.. //depot/projects/openpam/lib/pam_get_data.c#14 edit

Differences ...

==== //depot/projects/openpam/lib/pam_get_data.c#14 (text+ko) ====

@@ -31,10 +31,9 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/lib/pam_get_data.c#13 $
+ * $P4: //depot/projects/openpam/lib/pam_get_data.c#14 $
  */
 
-#include <stdint.h>
 #include <string.h>
 
 #include <security/pam_appl.h>
@@ -60,7 +59,7 @@
 		RETURNC(PAM_SYSTEM_ERR);
 	for (dp = pamh->module_data; dp != NULL; dp = dp->next) {
 		if (strcmp(dp->name, module_data_name) == 0) {
-			*data = (void *)(intptr_t)dp->data;
+			*data = (void *)dp->data;
 			RETURNC(PAM_SUCCESS);
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407271008.i6RA8Duc030087>