projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oracle plugin: remove unneccesary cast
[collectd.git]
/
contrib
/
format.sh
diff --git
a/contrib/format.sh
b/contrib/format.sh
index
d4444cc
..
18fac0a
100755
(executable)
--- a/
contrib/format.sh
+++ b/
contrib/format.sh
@@
-10,10
+10,10
@@
if test $# -lt 1; then
fi
for i in "$@"; do
fi
for i in "$@"; do
- d="
$(dirname "${i}")
"
- o="
$(tempfile -d "${d}" -m 0644)
"
+ d="
`dirname "${i}"`
"
+ o="
`TMPDIR="${d}" mktemp format.XXXXXX`
"
- curl --silent --data-binary "@-" https://
clang-format.appspot.com
/ <"${i}" >"${o}"
+ curl --silent --data-binary "@-" https://
format.collectd.org
/ <"${i}" >"${o}"
if test $? -eq 0; then
cat "${o}" >"${i}"
fi
if test $? -eq 0; then
cat "${o}" >"${i}"
fi