8756029f01
from LEVAI Daniel, with some tweaks by me ok william@ (MAINTAINER)
29 lines
846 B
Plaintext
29 lines
846 B
Plaintext
$OpenBSD: patch-examples_emptyfolders_c,v 1.2 2010/12/21 18:16:04 jasper Exp $
|
|
|
|
Fix compilation with GCC2.
|
|
|
|
--- examples/emptyfolders.c.orig Thu May 7 01:04:19 2009
|
|
+++ examples/emptyfolders.c Tue Dec 21 14:03:13 2010
|
|
@@ -62,6 +62,10 @@ int main (int argc, char **argv)
|
|
int do_delete = 0;
|
|
int opt;
|
|
|
|
+ LIBMTP_mtpdevice_t *device;
|
|
+ LIBMTP_folder_t *folders;
|
|
+ LIBMTP_file_t *files;
|
|
+
|
|
fprintf(stdout, "libmtp version: " LIBMTP_VERSION_STRING "\n\n");
|
|
|
|
while ( (opt = getopt(argc, argv, "d")) != -1 ) {
|
|
@@ -78,10 +82,6 @@ int main (int argc, char **argv)
|
|
printf("This is a dummy run. No folders will be deleted.\n");
|
|
printf("To delete folders, use the '-d' option.\n");
|
|
}
|
|
-
|
|
- LIBMTP_mtpdevice_t *device;
|
|
- LIBMTP_folder_t *folders;
|
|
- LIBMTP_file_t *files;
|
|
|
|
LIBMTP_Init();
|
|
device = LIBMTP_Get_First_Device();
|