Skip to content

Commit

Permalink
(xmlsec-core) Remove 'const struct' to avoid problems with some compi…
Browse files Browse the repository at this point in the history
…lers (lsh123#807)
  • Loading branch information
lsh123 authored Jul 9, 2024
1 parent 2387bf6 commit 8e821f9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/xmlsec/keysdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ extern "C" {
* Forward declarations
*
****************************************************************************/
typedef const struct _xmlSecKeyDataKlass xmlSecKeyDataKlass,
typedef struct _xmlSecKeyDataKlass xmlSecKeyDataKlass,
*xmlSecKeyDataId;
typedef const struct _xmlSecKeyDataStoreKlass xmlSecKeyDataStoreKlass,
typedef struct _xmlSecKeyDataStoreKlass xmlSecKeyDataStoreKlass,
*xmlSecKeyDataStoreId;
typedef struct _xmlSecKeyDataList xmlSecKeyDataList,
*xmlSecKeyDataListPtr;
Expand Down
4 changes: 2 additions & 2 deletions include/xmlsec/keysmngr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
extern "C" {
#endif /* __cplusplus */

typedef const struct _xmlSecKeyKlass xmlSecKeyKlass,
typedef struct _xmlSecKeyKlass xmlSecKeyKlass,
*xmlSecKeyId;
typedef const struct _xmlSecKeyStoreKlass xmlSecKeyStoreKlass,
typedef struct _xmlSecKeyStoreKlass xmlSecKeyStoreKlass,
*xmlSecKeyStoreId;

typedef struct _xmlSecKeyX509DataValue xmlSecKeyX509DataValue,
Expand Down
2 changes: 1 addition & 1 deletion include/xmlsec/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
extern "C" {
#endif /* __cplusplus */

typedef const struct _xmlSecPtrListKlass xmlSecPtrListKlass,
typedef struct _xmlSecPtrListKlass xmlSecPtrListKlass,
*xmlSecPtrListId;
typedef struct _xmlSecPtrList xmlSecPtrList,
*xmlSecPtrListPtr;
Expand Down
2 changes: 1 addition & 1 deletion include/xmlsec/transforms.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
extern "C" {
#endif /* __cplusplus */

typedef const struct _xmlSecTransformKlass xmlSecTransformKlass,
typedef struct _xmlSecTransformKlass xmlSecTransformKlass,
*xmlSecTransformId;

/**********************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/kw_aes_des.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct _xmlSecKWDes3Klass {
void* reserved0;
void* reserved1;
};
typedef const struct _xmlSecKWDes3Klass xmlSecKWDes3Klass,
typedef struct _xmlSecKWDes3Klass xmlSecKWDes3Klass,
*xmlSecKWDes3Id;

#define xmlSecKWDes3CheckId(id) \
Expand Down Expand Up @@ -156,7 +156,7 @@ struct _xmlSecKWAesKlass {
void* reserved0;
void* reserved1;
};
typedef const struct _xmlSecKWAesKlass xmlSecKWAesKlass,
typedef struct _xmlSecKWAesKlass xmlSecKWAesKlass,
*xmlSecKWAesId;

/*********************************************************************
Expand Down

0 comments on commit 8e821f9

Please sign in to comment.