Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
po: remove unnecessary/buggy positional parameter specifiers
[tools/e2fsprogs.git]
/
misc
/
partinfo.c
diff --git
a/misc/partinfo.c
b/misc/partinfo.c
index
48b395f
..
b79d183
100644
(file)
--- a/
misc/partinfo.c
+++ b/
misc/partinfo.c
@@
-7,6
+7,7
@@
*
*/
*
*/
+#include "config.h"
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_SYS_IOCTL_H
@@
-17,7
+18,9
@@
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
-#include "nls-enable.h"
+#include <string.h>
+#include "support/nls-enable.h"
+#include "et/com_err.h"
#if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE)
#define BLKGETSIZE _IO(0x12,96) /* return device size */
#if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE)
#define BLKGETSIZE _IO(0x12,96) /* return device size */
@@
-34,6
+37,7
@@
int main(int argc, char **argv)
setlocale(LC_CTYPE, "");
bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
textdomain(NLS_CAT_NAME);
setlocale(LC_CTYPE, "");
bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
textdomain(NLS_CAT_NAME);
+ set_com_err_gettext(gettext);
#endif
if (argc == 1) {
fprintf(stderr, _("Usage: %s device...\n\nPrints out the "
#endif
if (argc == 1) {
fprintf(stderr, _("Usage: %s device...\n\nPrints out the "