AUTOTOOLS: Add Makefile.am for examples/

This commit is contained in:
Ronnie Sahlberg
2014-03-22 17:46:02 -07:00
parent ea790b2f75
commit ae60611f68
4 changed files with 12 additions and 12 deletions

7
examples/Makefile.am Normal file
View File

@@ -0,0 +1,7 @@
AM_CPPFLAGS=-I. -I../include "-D_U_=__attribute__((unused))" \
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
AM_CFLAGS=$(WARN_CFLAGS)
LDADD = ../lib/libiscsi.la
noinst_PROGRAMS = iscsiclient iscsi-dd

View File

@@ -140,7 +140,7 @@ void fill_read_queue(struct client *client)
}
}
int main(int argc, const char *argv[])
int main(int argc, char *argv[])
{
char *src_url = NULL;
char *dst_url = NULL;
@@ -163,17 +163,16 @@ int main(int argc, const char *argv[])
&option_index)) != -1) {
switch (c) {
case 'd':
dst = optarg;
dst_url = optarg;
break;
case 's':
src = optarg;
src_url = optarg;
break;
case 'i':
initiator = optarg;
break;
default:
fprintf(stderr, "Unrecognized option '%c'\n\n", c);
print_help();
exit(0);
}
}