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
Fixes #11
Merged
Merged
Fixes #11
Commits on Oct 19, 2012
-
genl/family flags can be damaged during the auto-indentation.
"-" was never used in the names of the flags. "_" was used in all places of the library. So, I just changed the undescore to the minus. Automatic indentation can insert spaces on either side of the minus, so the library will be compiled, but will not be usable (in this part of the code), as the parser will split words by white space, and the flag "admin - perm" will never work.
Configuration menu - View commit details
-
Copy full SHA for 787f14d - Browse repository at this point
Copy the full SHA 787f14dView commit details -
Configuration menu - View commit details
-
Copy full SHA for fedb862 - Browse repository at this point
Copy the full SHA fedb862View commit details -
Based on clang diagnostics: 1. lib/nl.c: recvmsgs(): nla filling with zeros commented. 2. lib/route/classid.c: & lib/route/pktloc.c: remove zero-filling of struct stat 3. lib/route/qdisc/htb.c: Fix htb_qdisc_msg_fill(): fix zero-filling 4. ematch/container.c: container_parse: commented why only 4 bytes are copied len marked as unused to eliminate compiler warning
Configuration menu - View commit details
-
Copy full SHA for e1b67fb - Browse repository at this point
Copy the full SHA e1b67fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7ec197 - Browse repository at this point
Copy the full SHA e7ec197View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d6b104 - Browse repository at this point
Copy the full SHA 9d6b104View commit details -
nl_recv(): Memory allocation errors are handled properly now
1. all cleanup actions (like free()) now located at the end of function 2. in case of error or EOF, *buf and *creds (if given) set to NULL This protect from invalid code at user's side, like: char *buf; x = nl_recv(..., &buf, ...); if (x<=0) goto cleanup; cleanup: free(buf); 3. all intermediate buffers are stored into local variables, and user's variables only touches at the end.
Configuration menu - View commit details
-
Copy full SHA for 6946851 - Browse repository at this point
Copy the full SHA 6946851View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2249eae - Browse repository at this point
Copy the full SHA 2249eaeView commit details -
nl_recv(): small code cleanups
1. memset around nla is unnecessary 2. calloc() is unnecessary. malloc() used instead.
Configuration menu - View commit details
-
Copy full SHA for da694e6 - Browse repository at this point
Copy the full SHA da694e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 420e462 - Browse repository at this point
Copy the full SHA 420e462View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.