Use GStatBuf to match newer GLib API

This commit is contained in:
John Ralls 2017-07-03 12:17:12 -07:00
parent cb06e0e763
commit 85d868f826
2 changed files with 4 additions and 2 deletions

View File

@ -383,7 +383,7 @@ test_files_in_dir (int argc, char** argv, gxpf_callback cb,
for (count = 1; count < argc; count++)
{
struct stat file_info;
GStatBuf file_info;
const char* to_open = argv[count];
if (g_stat (to_open, &file_info) != 0)
{

View File

@ -31,6 +31,8 @@ extern "C"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
@ -62,7 +64,7 @@ remove_files_pattern (const char* begining, const char* ending)
static void
remove_locks (const char* filename)
{
struct stat buf;
GStatBuf buf;
char* to_remove;
{