diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-10-05 08:25:50 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-10-05 08:38:19 -0700 |
| commit | d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a (patch) | |
| tree | 579cc387639a9be8e0b162aeaa0cd55d9c87f725 /src/core/protocol.h | |
| parent | 883e0289cdab5a81312b0593b098f70114b61f88 (diff) | |
| download | nng-d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a.tar.gz nng-d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a.tar.bz2 nng-d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a.zip | |
Various header file fixes... also fix compilation errors when HTTP is disabled.v2.0.0-alpha.6
Also, some instances nni_aio are changed to nng_aio. We think we want to harmonize
some of these types going forward as it will reduce the need to include headers
hopefully letting us get away with just "defs.h" in more places.
Diffstat (limited to 'src/core/protocol.h')
| -rw-r--r-- | src/core/protocol.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/protocol.h b/src/core/protocol.h index 109ec5ef..c128e676 100644 --- a/src/core/protocol.h +++ b/src/core/protocol.h @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -11,7 +11,7 @@ #ifndef CORE_PROTOCOL_H #define CORE_PROTOCOL_H -#include "core/options.h" +#include "options.h" // Protocol implementation details. Protocols must implement the // interfaces in this file. Note that implementing new protocols is @@ -168,7 +168,7 @@ extern int nni_proto_open(nng_socket *, const nni_proto *); // There are gaps in the list, which are obsolete or unsupported protocols. // Protocol numbers are never more than 16 bits. Also, there will never be // a valid protocol numbered 0 (NNG_PROTO_NONE). -#define NNI_PROTO(major, minor) (((major) *16) + (minor)) +#define NNI_PROTO(major, minor) (((major) * 16) + (minor)) // Protocol major numbers. This is here for documentation only, and // to serve as a "registry" for managing new protocol numbers. Consider |
