NetworkManager r4293 - trunk/libnm-util



Author: dcbw
Date: Fri Nov 14 23:04:06 2008
New Revision: 4293
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4293&view=rev

Log:
Fix undefined variable error on BE arches

Modified:
   trunk/libnm-util/crypto_nss.c

Modified: trunk/libnm-util/crypto_nss.c
==============================================================================
--- trunk/libnm-util/crypto_nss.c	(original)
+++ trunk/libnm-util/crypto_nss.c	Fri Nov 14 23:04:06 2008
@@ -301,7 +301,9 @@
 	SECStatus s;
 	char *ucs2_password;
 	glong ucs2_chars = 0;
+#ifndef WORDS_BIGENDIAN
 	guint16 *p;
+#endif /* WORDS_BIGENDIAN */
 
 	if (error)
 		g_return_val_if_fail (*error == NULL, FALSE);
@@ -330,7 +332,7 @@
 #ifndef WORDS_BIGENDIAN
 		for (p = (guint16 *) pw.data; p < (guint16 *) (pw.data + pw.len); p++)
 			*p = GUINT16_SWAP_LE_BE (*p);
-#endif
+#endif /* WORDS_BIGENDIAN */
 	} else {
 		/* NULL password */
 		pw.data = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]