openbsd-ports/devel/libmtp/patches/patch-examples_connect_c
jasper 8756029f01 - update libmtp to 1.0.3
from LEVAI Daniel, with some tweaks by me
ok william@ (MAINTAINER)
2010-12-21 18:16:04 +00:00

25 lines
528 B
Plaintext

$OpenBSD: patch-examples_connect_c,v 1.2 2010/12/21 18:16:04 jasper Exp $
Fix compilation with GCC2.
--- examples/connect.c.orig Sat Jan 30 08:31:15 2010
+++ examples/connect.c Tue Dec 21 14:01:22 2010
@@ -77,6 +77,9 @@ usage(void)
int main (int argc, char **argv)
{
+ char *arg1, *arg2;
+
+
checklang();
LIBMTP_Init();
@@ -122,7 +125,6 @@ int main (int argc, char **argv)
if (c == -1)
break;
- char *arg1, *arg2;
switch (c) {
case 'd':
printf("Delete %s\n",optarg);