~vibhavp/ubuntu/saucy/aufs-tools/merge-from-debian

« back to all changes in this revision

Viewing changes to ver.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2011-08-28 00:22:02 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110828002202-csjxokj480jh4qei
Tags: 20110410-1
* Merging upstream version 20110410.
* Updating maintainer and uploaders fields.
* Removing vcs fields.
* Removing references to my old email address.
* Makging packaging distribution neutral.
* Updating years in copyright file.
* Updating to standards version 3.9.2.
* Compacting copyright file.
* Updating build and install targets in rules for new upstream
  version.
* Rediffing static.patch.
* Correcting spelling mistake in package description.
* Adding manpage symlinks for aubusy and auibusy.
* Updating lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 Junjiro R. Okajima
 
3
 *
 
4
 * This program, aufs is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 */
 
18
 
 
19
#include <linux/aufs_type.h>
 
20
#include <stdio.h>
 
21
#include <string.h>
 
22
#include "au_util.h"
 
23
 
 
24
int main(int argc, char *argv[])
 
25
{
 
26
        if (!strncmp(AUFS_VERSION, "2.1", 3)
 
27
            && (sizeof(AUFS_VERSION) - 1 == 3
 
28
                || AUFS_VERSION[3] == '-'))
 
29
                return 0;
 
30
 
 
31
        puts("Wrong version!\n"
 
32
             AuVersion ", but aufs is " AUFS_VERSION ".");
 
33
        return -1;
 
34
}