~ubuntu-branches/ubuntu/hardy/pcmanfm/hardy-backports

« back to all changes in this revision

Viewing changes to src/vfs/vfs-file-task.c

  • Committer: Bazaar Package Importer
  • Author(s): J?r?me Guelfucci
  • Date: 2008-07-01 00:40:37 UTC
  • mfrom: (5.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080701004037-q6pfacskp0xnk10k
Tags: 0.4.3-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
                       const char* dest_file )
172
172
{
173
173
    GDir * dir;
174
 
    gchar* file_name;
 
174
    const gchar* file_name;
175
175
    gchar* sub_src_file;
176
176
    gchar* sub_dest_file;
177
177
    struct stat file_stat;
181
181
    ssize_t rsize;
182
182
    char* new_dest_file = NULL;
183
183
    gboolean dest_exists;
184
 
    int overwrite_mode;
185
184
    int result;
186
185
 
187
186
    if ( should_abort( task ) )
373
372
                        const char* src_file,
374
373
                        const char* dest_file )
375
374
{
376
 
    GDir * dir;
377
 
    gchar* file_name;
378
375
    gchar* new_dest_file = NULL;
379
376
    gboolean dest_exists;
380
 
    gchar* sub_src_file;
381
 
    gchar* sub_dest_file;
382
377
    struct stat file_stat;
383
 
    int overwrite_mode, result;
 
378
    int result;
384
379
 
385
380
    if ( should_abort( task ) )
386
381
        return ;
474
469
vfs_file_task_delete( char* src_file, VFSFileTask* task )
475
470
{
476
471
    GDir * dir;
477
 
    gchar* file_name;
 
472
    const gchar* file_name;
478
473
    gchar* sub_src_file;
479
474
    struct stat file_stat;
480
475
    int result;
537
532
static void
538
533
vfs_file_task_link( char* src_file, VFSFileTask* task )
539
534
{
540
 
    struct stat src_stat, dest_stat;
 
535
    struct stat src_stat;
541
536
    int result;
542
537
    gchar* dest_file;
543
538
    gchar* file_name = g_path_get_basename( src_file );
577
572
    int i;
578
573
    GDir* dir;
579
574
    gchar* sub_src_file;
580
 
    gchar* file_name;
 
575
    const gchar* file_name;
581
576
    mode_t new_mode;
582
577
 
583
578
    int result;
661
656
{
662
657
    GList * l;
663
658
    struct stat file_stat;
664
 
    dev_t dest_dev;
665
 
    char* src_path;
666
 
    gboolean cancelled = FALSE;
 
659
    dev_t dest_dev = 0;
667
660
    GFunc funcs[] = {( GFunc ) vfs_file_task_move,
668
661
                     ( GFunc ) vfs_file_task_copy,
669
662
                     ( GFunc ) vfs_file_task_delete,