Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
36d88387
Commit
36d88387
authored
Sep 18, 2010
by
Mike Hibler
Browse files
Lint.
parent
0d1f2b6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
event/program-agent/program-agent.c
View file @
36d88387
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-200
8
University of Utah and the Flux Group.
* Copyright (c) 2000-20
1
0 University of Utah and the Flux Group.
* All rights reserved.
*/
...
...
@@ -1767,7 +1767,7 @@ parse_configfile(char *filename)
while
(
fgets
(
buf
,
sizeof
(
buf
),
fp
))
{
int
cc
=
strlen
(
buf
);
if
(
buf
[
cc
-
1
]
==
'\n'
)
buf
[
cc
-
1
]
=
(
char
)
NULL
;
buf
[
cc
-
1
]
=
'\0'
;
if
(
!
strncmp
(
buf
,
"UID="
,
4
))
{
if
(
user
)
{
...
...
@@ -1896,7 +1896,7 @@ parse_configfile_env(char *filename)
FILE
*
file
;
if
(
buf
[
cc
-
1
]
==
'\n'
)
buf
[
cc
-
1
]
=
(
char
)
NULL
;
buf
[
cc
-
1
]
=
'\0'
;
if
(
isops
)
bp
=
buf
;
...
...
event/proxy/version0_gateway.c
View file @
36d88387
...
...
@@ -207,6 +207,7 @@ main(int argc, char **argv)
static
char
notify_debug_string
[
2
*
BUFSIZ
];
#if 0
static int
pubsub_notify_traverse_debug(void *arg, char *name,
pubsub_type_t type, pubsub_value_t value,
...
...
@@ -258,6 +259,7 @@ pubsub_notify_traverse_debug(void *arg, char *name,
return 1;
}
#endif
static
void
pubsub_callback
(
pubsub_handle_t
*
handle
,
...
...
event/tbgen/tevc.c
View file @
36d88387
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-200
7
University of Utah and the Flux Group.
* Copyright (c) 2000-20
1
0 University of Utah and the Flux Group.
* All rights reserved.
*/
...
...
@@ -209,7 +209,7 @@ main(int argc, char **argv)
if
((
bp
=
strchr
(
temp
,
'/'
))
==
NULL
)
fatal
(
"Malformed pid/eid: %s"
,
myeid
);
*
bp
++
=
(
char
)
NULL
;
*
bp
++
=
'\0'
;
sprintf
(
keyfilebuf
,
"/proj/%s/exp/%s/tbdata/eventkey"
,
temp
,
bp
);
...
...
@@ -292,7 +292,7 @@ main(int argc, char **argv)
* XXX For now, uppercase the strings, and remove trailing _.
*/
if
(
argc
)
{
buf
[
0
]
=
(
char
)
NULL
;
buf
[
0
]
=
'\0'
;
while
(
argc
)
{
if
(
strlen
(
*
argv
)
+
strlen
(
buf
)
>=
sizeof
(
buf
)
-
2
)
fatal
(
"Too many event argument strings!"
);
...
...
@@ -309,8 +309,8 @@ main(int argc, char **argv)
bp
++
;
}
if
(
*
(
bp
-
1
)
==
'_'
)
*
(
bp
-
1
)
=
(
char
)
NULL
;
*
bp
++
=
(
char
)
NULL
;
*
(
bp
-
1
)
=
'\0'
;
*
bp
++
=
'\0'
;
sprintf
(
&
buf
[
strlen
(
buf
)],
"%s=%s "
,
*
argv
,
bp
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment