Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_t suffix is reserved by POSIX standard #66

Open
yoursunny opened this issue Sep 13, 2019 · 0 comments
Open

_t suffix is reserved by POSIX standard #66

yoursunny opened this issue Sep 13, 2019 · 0 comments

Comments

@yoursunny
Copy link
Contributor

According to libtool documentation and POSIX.1 standard section 2.2.2, some classes of identifier names are reserved for future extensions to the C language or the POSIX.1 environment. While using these names for your own purposes right now might not cause a problem, they do raise the possibility of conflict with future versions of the C or POSIX standards, so you should avoid these names.

One of them is names that end with _t suffix, reserved by POSIX.1 standard for additional type names.
ndn-lite contains declarations like:

typedef struct interest_params {
uint8_t value[NDN_INTEREST_PARAMS_BUFFER_SIZE];
uint32_t size;
} interest_params_t;

They should be changed to:

typedef struct interest_params {
  uint8_t value[NDN_INTEREST_PARAMS_BUFFER_SIZE];
  uint32_t size;
} interest_params;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant