11#include "publicip.h"
22#include "common/networking.h"
33
4- #define FF_UNITIALIZED ((const char*) (uintptr_t) -1)
4+ #define FF_UNINITIALIZED ((const char*) (uintptr_t) -1)
55static FFNetworkingState states [2 ];
6- static const char * statuses [2 ] = { FF_UNITIALIZED , FF_UNITIALIZED };
6+ static const char * statuses [2 ] = { FF_UNINITIALIZED , FF_UNINITIALIZED };
77
88void ffPreparePublicIp (FFPublicIPOptions * options ) {
99 FFNetworkingState * state = & states [options -> ipv6 ];
1010 const char * * status = & statuses [options -> ipv6 ];
11- if (* status != FF_UNITIALIZED ) {
11+ if (* status != FF_UNINITIALIZED ) {
1212 fputs ("Error: PublicIp module can only be used once due to internal limitations\n" , stderr );
1313 exit (1 );
1414 }
@@ -53,7 +53,7 @@ static inline void wrapYyjsonFree(yyjson_doc** doc) {
5353const char * ffDetectPublicIp (FFPublicIPOptions * options , FFPublicIpResult * result ) {
5454 FFNetworkingState * state = & states [options -> ipv6 ];
5555 const char * * status = & statuses [options -> ipv6 ];
56- if (* status == FF_UNITIALIZED ) {
56+ if (* status == FF_UNINITIALIZED ) {
5757 ffPreparePublicIp (options );
5858 }
5959
@@ -65,7 +65,7 @@ const char* ffDetectPublicIp(FFPublicIPOptions* options, FFPublicIpResult* resul
6565 const char * error = ffNetworkingRecvHttpResponse (state , & response );
6666
6767 * state = (FFNetworkingState ) {};
68- * status = FF_UNITIALIZED ;
68+ * status = FF_UNINITIALIZED ;
6969
7070 if (error == NULL ) {
7171 ffStrbufSubstrAfterFirstS (& response , "\r\n\r\n" );
0 commit comments