~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_reader.cc

  • Committer: Vijay Samuel
  • Date: 2010-05-26 17:18:17 UTC
  • mto: (1578.1.3 new-staging)
  • mto: This revision was merged to the branch mainline in revision 1579.
  • Revision ID: vijay@vijay-20100526171817-7hg9vveq34uqgzzo
Command line of archive_reader refactored with boost::program_options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
  if (argc < 1)
125
125
  {
126
126
    printf("No file specified. \n");
127
 
    return 0;
 
127
    return -1;
128
128
  }
129
129
 
130
130
  if (!(ret= azopen(&reader_handle, argv[0], O_RDONLY, AZ_METHOD_BLOCK)))
131
131
  {
132
132
    printf("Could not open Archive file\n");
133
 
    return 0;
 
133
    return -1;
134
134
  }
135
135
 
136
136
  if (opt_autoincrement)