git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c878e0
)
Copy comment from tempfile.h to tempfile.c
author
wmeier
<wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 10 Mar 2009 00:05:15 +0000
(
00:05
+0000)
committer
wmeier
<wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 10 Mar 2009 00:05:15 +0000
(
00:05
+0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27687
f5534014
-38df-0310-8fa8-
9805f1628bb7
tempfile.c
patch
|
blob
|
history
diff --git
a/tempfile.c
b/tempfile.c
index 5052a1a36df33b3cf6e1c7920fe8f8250d09f446..e545b3b43abb7f2dc10a8d17f27f31042eda2729 100644
(file)
--- a/
tempfile.c
+++ b/
tempfile.c
@@
-100,6
+100,11
@@
static const char *E_tmpdir;
#define P_tmpdir "/var/tmp"
#endif
+/* create a tempfile with the given prefix (e.g. "ether")
+ * namebuf (and namebuflen) should be 128+1 bytes long (BTW: why?)
+ * returns the file descriptor of the new tempfile and
+ * the name of the new file in namebuf
+ */
int
create_tempfile(char *namebuf, int namebuflen, const char *pfx)
{