Commit Graph

19 Commits

Author SHA1 Message Date
stig d7b1a2678d Removed 'old-style parameter declaration'.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39773 f5534014-38df-0310-8fa8-9805f1628bb7
2011-11-09 10:05:55 +00:00
etxrab c7cc2a69cf Include time.h as compilation might fail with old gilb (2.4)
Thanks Jeff.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36767 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-21 13:56:06 +00:00
etxrab 4717e3a526 Add a cast to fix:
tempfile.c(202) : warning C4267: '=' : conversion from 'size_t' to 'unsigned long'

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34911 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-16 20:08:31 +00:00
cmaynard 078357ce7f Fix warning.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34904 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-16 16:40:16 +00:00
cmaynard 0057b3b18e Use more meaningful temp file name. Fixes bug 1882.
Template chosen is: wireshark_<iface>_YYYYmmddHHMMSS_XXXXXX ... where
    <iface> is the interface name (or UUID part of the interface if applicable)
    YYYYmmddHHMMSS are as described in "man strftime".
    XXXXXX is a template filled in with random characters.  See "man mkstemp".


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34902 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-16 15:37:37 +00:00
etxrab b5531a6051 Doxygen fixes.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33942 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-26 20:31:09 +00:00
guy c28042a230 Squelch some compiler warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32165 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-11 00:36:45 +00:00
gerald 3cccdf8644 Pull mkstemp() into tempfile.c. That's the only place we use it now, and
it's arguably the only place we _should_ use it. Add create_tempdir() to
tempfile.c and use it to create a temp directory for IP maps. This
should fix bug 3530.

(This still doesn't work on IE 8 / Vista here. IE gives an access denied
error in OpenLayers.js, but this is a separate issue).


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28920 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-02 17:20:27 +00:00
gerald 11d2a55065 Updates to create_tempfile:
- Use g_get_tmp_dir, just like get_tempfile_path.
  - Don't make the caller worry about the path buffer length.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28915 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-01 23:36:51 +00:00
gerald ebaddf5c97 Fix the last(?) of the Win64 compilation problems.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28065 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-16 04:05:39 +00:00
wmeier bf8ca17d3f Use wireshark (instead of ether) for temp file name prefix.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27992 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-08 12:22:12 +00:00
wmeier e42ab863e9 Copy comment from tempfile.h to tempfile.c
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27687 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-10 00:05:15 +00:00
morriss 440ebe03d7 Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22 15:46:27 +00:00
stig fa849b3bb2 More rewrite of prohibited APIs (sprintf, strcpy, strcat).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-03 15:38:20 +00:00
ulfl 6e51586ef6 Win32: MSVC > 6 doesn't work well with Unicode filenames!
fix this, by providing required functions in the new file file_util.c - it's mostly copied from GLib (g_open alike - that take UTF8 as filename format but don't use msvcrt.dll V6 for this as the glib files do) 

"link" to these functions in file_util.h: #define eth_open eth_stdio_open

revert changes (from SVN 20282) throughout the code related to these file functions which were introduced with the first tries of MSVC 2005 ...

Hopefully I've done everything right with the new file_util.c ...

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20402 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-12 03:05:28 +00:00
ulfl 4627e23038 from Laurent Rabret:
I posted a patch about 1.5 years ago for the formerly Ethereal to successfully compiled with Visual > 6. I have always successfully used this patched Ethereal/Wireshark compiled with VS 2003 and have just checked when compiled with Visual C++ 2005 Express

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20282 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-03 02:50:22 +00:00
sahlberg 33270db64f name change
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21 05:12:17 +00:00
ulfl 4af29c9503 remove dependencies to pcap.h, so getting an idea what needs to be done by dumpcap in addition to the things already done now
various dumpcap related code cleanup: mainly #include's and capture engine related stuff

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17327 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-17 02:18:48 +00:00
guy 32824a0843 Move create_tempfile() to tempfile.c out of util.c. This means dumpcap
no longer needs util.c, so it no longer includes routines that use
host_ip_af(), so it no longer needs to define its own host_ip_af().

That also means dumpcap.c no longer needs to include <sys/socket.h>.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17278 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-12 21:52:18 +00:00