diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-29 20:05:39 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-29 20:05:39 +0000 |
commit | a7de0371a47eafb099fdf93d421cc9f9f67fe9d2 (patch) | |
tree | 922a3169eb7b951c214f93865b93238385ee95d7 /fileset.c | |
parent | d11d3d6f8df9b3dd35eabccb2c3f174afce58dbb (diff) | |
download | wireshark-a7de0371a47eafb099fdf93d421cc9f9f67fe9d2.tar.gz wireshark-a7de0371a47eafb099fdf93d421cc9f9f67fe9d2.tar.bz2 wireshark-a7de0371a47eafb099fdf93d421cc9f9f67fe9d2.zip |
fix buildbot reported problems (unix related), part 1
svn path=/trunk/; revision=14234
Diffstat (limited to 'fileset.c')
-rw-r--r-- | fileset.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -42,6 +42,7 @@ # include <sys/wait.h> #endif +#include <string.h> #include <glib.h> @@ -160,18 +161,18 @@ fileset_entry * fileset_add_file(const char *dirname, const char *fname, gboolean current) { int fh, result; - struct _stat buf; + struct stat buf; char *path; fileset_entry *entry = NULL; path = g_strdup_printf("%s%s", dirname, fname); - fh = open( path, _O_RDONLY ); + fh = open( path, O_RDONLY ); if(fh != -1) { /* Get statistics */ - result = _fstat( fh, &buf ); + result = fstat( fh, &buf ); /* Show statistics if they are valid */ if( result == 0 ) { @@ -187,7 +188,7 @@ fileset_add_file(const char *dirname, const char *fname, gboolean current) set.entries = g_list_append(set.entries, entry); } - _close(fh); + close(fh); } g_free(path); |