X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcryptsetup.h;h=5d322cf699e94b8d10ae479b4b6b6a5284685da4;hb=ad21d48762fa70838d4ab4fbe8fe2a2e8a4dcef1;hp=0eb9c5572fefeb85cf33c4c58611c2470b35f385;hpb=e030e3bd15b6b94e2fded4502d1fa16100e99aef;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/src/cryptsetup.h b/src/cryptsetup.h index 0eb9c55..5d322cf 100644 --- a/src/cryptsetup.h +++ b/src/cryptsetup.h @@ -1,13 +1,15 @@ /* * cryptsetup - setup cryptographic volumes for dm-crypt * - * Copyright (C) 2004, Christophe Saout + * Copyright (C) 2004, Jana Saout * Copyright (C) 2004-2007, Clemens Fruhwirth * Copyright (C) 2009-2012, Red Hat, Inc. All rights reserved. + * Copyright (C) 2009-2014, Milan Broz * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -22,11 +24,6 @@ #ifndef CRYPTSETUP_H #define CRYPTSETUP_H -#define _LARGEFILE64_SOURCE -#define _FILE_OFFSET_BITS 64 - -#include - #include #include #include @@ -60,13 +57,14 @@ extern int opt_force_password; /* Common tools */ void clogger(struct crypt_device *cd, int level, const char *file, int line, - const char *format, ...); + const char *format, ...) __attribute__ ((format (printf, 5, 6))); void tool_log(int level, const char *msg, void *usrptr __attribute__((unused))); void quiet_log(int level, const char *msg, void *usrptr); int yesDialog(const char *msg, void *usrptr __attribute__((unused))); void show_status(int errcode); const char *uuid_or_device(const char *spec); +__attribute__ ((noreturn)) \ void usage(poptContext popt_context, int exitcode, const char *error, const char *more); void dbg_version_and_cmd(int argc, const char **argv); int translate_errno(int r);