summaryrefslogtreecommitdiff
path: root/examples/sendfile.c
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2009-01-02 01:44:00 +0000
committerLinus Walleij <triad@df.lth.se>2009-01-02 01:44:00 +0000
commit2242b028c1ed7864cd5118d6fa3db47aa95ae1a2 (patch)
treef2bc9aa7b1dcbb50e5983de80b5aee897b0c04be /examples/sendfile.c
parent8aba06d532cc9f9d061a39420a4186ce834d75a7 (diff)
downloadlibmtp-2242b028c1ed7864cd5118d6fa3db47aa95ae1a2.tar.gz
Several new devices and fixes
Diffstat (limited to 'examples/sendfile.c')
-rw-r--r--examples/sendfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sendfile.c b/examples/sendfile.c
index dd52ad3..a98a3da 100644
--- a/examples/sendfile.c
+++ b/examples/sendfile.c
@@ -2,7 +2,7 @@
* \file sendfile.c
* Example program to send an arbitrary file to a device.
*
- * Copyright (C) 2005-2007 Linus Walleij <triad@df.lth.se>
+ * Copyright (C) 2005-2009 Linus Walleij <triad@df.lth.se>
* Copyright (C) 2006 Chris A. Debenham <chris@adebenham.com>
*
* This library is free software; you can redistribute it and/or
@@ -85,7 +85,7 @@ int sendfile_function(char * from_path, char *to_path)
genfile->filesize = filesize;
genfile->filename = strdup(filename);
genfile->filetype = find_filetype (filename);
- genfile->parent_id = 0;
+ genfile->parent_id = parent_id;
genfile->storage_id = 0;
printf("Sending file...\n");