]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: make three *_proto struct fields smaller
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Aug 2022 11:16:52 +0000 (13:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Aug 2022 12:30:25 +0000 (14:30 +0200)
Use 'unsigned char' for storage instead of the enum, for three GSSAPI
related fields in the connectdata struct.

Closes #9278

lib/urldata.h

index d8c3f6f593831834b796217eff934198d7e5ce33..4f648778b0511500544207efcd2db1d6db4a8f00 100644 (file)
@@ -1018,9 +1018,9 @@ struct connectdata {
 
 #ifdef HAVE_GSSAPI
   BIT(sec_complete); /* if Kerberos is enabled for this connection */
-  enum protection_level command_prot;
-  enum protection_level data_prot;
-  enum protection_level request_data_prot;
+  unsigned char command_prot; /* enum protection_level */
+  unsigned char data_prot; /* enum protection_level */
+  unsigned char request_data_prot; /* enum protection_level */
   size_t buffer_size;
   struct krb5buffer in_buffer;
   void *app_data;