Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GNU CVS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirabilos
GNU CVS
Commits
af7dbe61
Commit
af7dbe61
authored
16 years ago
by
dprice
Browse files
Options
Downloads
Patches
Plain Diff
* modules.c (my_module): Clean up TRACE.
* subr.h [NULL2DOT, NULL2MT]: Add parens for safety.
parent
30001666
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ChangeLog
+5
-0
5 additions, 0 deletions
src/ChangeLog
src/modules.c
+2
-2
2 additions, 2 deletions
src/modules.c
src/subr.h
+2
-2
2 additions, 2 deletions
src/subr.h
with
9 additions
and
4 deletions
src/ChangeLog
+
5
−
0
View file @
af7dbe61
2008-10-02 Derek R. Price <derek@ximbiot.com>
* modules.c (my_module): Clean up TRACE.
* subr.h [NULL2DOT, NULL2MT]: Add parens for safety.
2008-09-30 Derek R. Price <derek@ximbiot.com>
2008-09-30 Derek R. Price <derek@ximbiot.com>
* checkout.c (preload_update_dir): Eliminate global. It was used in
* checkout.c (preload_update_dir): Eliminate global. It was used in
...
...
This diff is collapsed.
Click to expand it.
src/modules.c
+
2
−
2
View file @
af7dbe61
...
@@ -143,8 +143,8 @@ my_module (DBM *db, char *mname, enum mtype m_type, char *msg,
...
@@ -143,8 +143,8 @@ my_module (DBM *db, char *mname, enum mtype m_type, char *msg,
#endif
#endif
TRACE
(
TRACE_FUNCTION
,
"my_module (%s, %s, %s, %s)"
,
TRACE
(
TRACE_FUNCTION
,
"my_module (%s, %s, %s, %s)"
,
mname
?
mname
:
"(null)"
,
msg
?
msg
:
"(null)"
,
TRACE_NULL
(
mname
),
TRACE_NULL
(
msg
)
,
where
?
where
:
"
NULL
"
,
extra_arg
?
extra_arg
:
"NULL"
);
TRACE_NULL
(
where
),
TRACE_
NULL
(
extra_arg
)
);
/* Don't process absolute directories. Anything else could be a security
/* Don't process absolute directories. Anything else could be a security
* problem. Before this check was put in place:
* problem. Before this check was put in place:
...
...
This diff is collapsed.
Click to expand it.
src/subr.h
+
2
−
2
View file @
af7dbe61
...
@@ -176,10 +176,10 @@ strneq (const char *a, const char *b, size_t n)
...
@@ -176,10 +176,10 @@ strneq (const char *a, const char *b, size_t n)
/* Convenience macro for printing the commonly used but sometimes empty
/* Convenience macro for printing the commonly used but sometimes empty
* UPDATE_DIR string.
* UPDATE_DIR string.
*/
*/
#define NULL2DOT(u) (
u
&& *
u ? u
: ".")
#define NULL2DOT(u) (
(u)
&& *
(u) ? (u)
: ".")
/* Convenience macro for equating a NULL pointer and the empty string. */
/* Convenience macro for equating a NULL pointer and the empty string. */
#define NULL2MT(s) (
s ? s
: "")
#define NULL2MT(s) (
(s) ? (s)
: "")
/* Replace pointer D with S, freeing D afterwards. This is useful when S
/* Replace pointer D with S, freeing D afterwards. This is useful when S
* is an expression containing D.
* is an expression containing D.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment