nsgmls: resolve coverity warnings related to uninitialed members in C++ classes
[oweals/cde.git] / cde / programs / dtpad / ttSaveSupport.c
index ad840aec30e13f542019fc1694c85316382d0073..c63871fe9887613d6bb543c460785d8c09e35134 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these librararies and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $XConsortium: ttSaveSupport.c /main/4 1996/05/08 20:09:07 drk $ */
 /**********************************<+>*************************************
 ***************************************************************************
 
 /* definitions from tttk/tttkutils.h */
 char _TTKeys[7];
-#define _TTCBKey               ((int)&_TTKeys[0])
-#define _TTClientCBKey         ((int)&_TTKeys[1])
-#define _TTClientDataKey       ((int)&_TTKeys[2])
-#define _TTDepositPatKey       ((int)&_TTKeys[3])
-#define _TTJoinInfoKey         ((int)&_TTKeys[4])
-#define _TTContractKey         ((int)&_TTKeys[5])
-#define _TTSubContractKey      ((int)&_TTKeys[6])
+#define _TTCBKey               ((int)(intptr_t)&_TTKeys[0])
+#define _TTClientCBKey         ((int)(intptr_t)&_TTKeys[1])
+#define _TTClientDataKey       ((int)(intptr_t)&_TTKeys[2])
+#define _TTDepositPatKey       ((int)(intptr_t)&_TTKeys[3])
+#define _TTJoinInfoKey         ((int)(intptr_t)&_TTKeys[4])
+#define _TTContractKey         ((int)(intptr_t)&_TTKeys[5])
+#define _TTSubContractKey      ((int)(intptr_t)&_TTKeys[6])
 
 extern Editor *pPadList;  /*  list of Editor instances - declared in main.c */