~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to s3tools/src/s3rmdir.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2010- The University of Notre Dame
 
3
This software is distributed under the GNU General Public License.
 
4
See the file COPYING for details.
 
5
*/
 
6
#include <stdio.h>
 
7
#include <stdlib.h>
 
8
#include <string.h>
 
9
#include <stringtools.h>
 
10
 
 
11
#include "s3common.h"
 
12
#include "s3c_bucket.h"
 
13
 
 
14
int main(int argc, char** argv) {
 
15
        s3_initialize(&argc, argv);
 
16
        if(argc < 2) {
 
17
                fprintf(stderr, "usage: s3rmdir <bucket>\n");
 
18
                return -1;
 
19
        }
 
20
 
 
21
        s3_rm_bucket(argv[1], s3_userid(), s3_key());
 
22
 
 
23
        return 0;
 
24
}
 
25