Changeset 13970
- Timestamp:
- Feb 4, 2013, 9:53:19 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/util.c
r13897 r13970 18 18 #include <gtk/gtk.h> 19 19 #include <glib/gi18n.h> 20 #include <glib/gstdio.h> /* g_unlink () */21 20 #include <gio/gio.h> /* g_file_trash () */ 22 21 -
trunk/libtransmission/blocklist.c
r13868 r13970 17 17 #include <string.h> 18 18 19 #include <unistd.h> /* unlink() */19 #include <unistd.h> /* close () */ 20 20 21 21 #ifdef WIN32 … … 140 140 { 141 141 blocklistClose (b); 142 unlink(b->filename);142 tr_remove (b->filename); 143 143 } 144 144 -
trunk/libtransmission/metainfo.c
r13868 r13970 17 17 18 18 #include <sys/types.h> 19 #include <unistd.h> /* unlink,stat */19 #include <unistd.h> /* stat */ 20 20 21 21 #include <event2/buffer.h> … … 588 588 589 589 filename = getTorrentFilename (session, inf); 590 unlink(filename);590 tr_remove (filename); 591 591 tr_free (filename); 592 592 } -
trunk/libtransmission/resume.c
r13912 r13970 10 10 * $Id$ 11 11 */ 12 13 #include <unistd.h> /* unlink */14 12 15 13 #include <string.h> … … 924 922 { 925 923 char * filename = getResumeFilename (tor); 926 unlink(filename);924 tr_remove (filename); 927 925 tr_free (filename); 928 926 } -
trunk/libtransmission/rpcimpl.c
r13913 r13970 16 16 #include <stdlib.h> /* strtol */ 17 17 #include <string.h> /* strcmp */ 18 #include <unistd.h> /* unlink */19 18 20 19 #ifdef HAVE_ZLIB … … 1491 1490 } 1492 1491 1493 unlink(filename);1492 tr_remove (filename); 1494 1493 tr_free (filename); 1495 1494 tr_free (buf); -
trunk/libtransmission/torrent.c
r13969 r13970 2922 2922 2923 2923 /* cleanup */ 2924 rmdir(tmpdir);2924 tr_remove (tmpdir); 2925 2925 tr_free (tmpdir); 2926 2926 tr_ptrArrayDestruct (&folders, tr_free); -
trunk/libtransmission/utils.c
r13969 r13970 41 41 #include <sys/types.h> 42 42 #include <sys/stat.h> 43 #include <unistd.h> /* stat (), getcwd (), getpagesize () , unlink ()*/43 #include <unistd.h> /* stat (), getcwd (), getpagesize () */ 44 44 45 45 #include <event2/buffer.h> … … 1469 1469 return -1; 1470 1470 1471 unlink(oldpath);1471 tr_remove (oldpath); 1472 1472 return 0; 1473 1473 } -
trunk/libtransmission/variant.c
r13969 r13970 24 24 25 25 #include <locale.h> /* setlocale() */ 26 #include <unistd.h> /* write() , unlink()*/26 #include <unistd.h> /* write() */ 27 27 28 28 #include <event2/buffer.h> … … 1207 1207 tr_logAddError (_("Couldn't save temporary file \"%1$s\": %2$s"), tmp, tr_strerror (err)); 1208 1208 tr_close_file (fd); 1209 unlink(tmp);1209 tr_remove (tmp); 1210 1210 } 1211 1211 else … … 1221 1221 err = errno; 1222 1222 tr_logAddError (_("Couldn't save file \"%1$s\": %2$s"), filename, tr_strerror (err)); 1223 unlink(tmp);1223 tr_remove (tmp); 1224 1224 } 1225 1225 }
Note: See TracChangeset
for help on using the changeset viewer.