summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2p/pe.c
diff options
context:
space:
mode:
authorMike Frysinger2005-06-11 00:08:50 +0000
committerMike Frysinger2005-06-11 00:08:50 +0000
commit85cffcc83dfa8471c458789474513171ff9281df (patch)
tree6890b22c5a78b5166952d173a7d1a2bd94afca1b /e2fsprogs/e2p/pe.c
parent942e137679ef3e07036cc32689ea7c802304cd1d (diff)
downloadbusybox-85cffcc83dfa8471c458789474513171ff9281df.zip
busybox-85cffcc83dfa8471c458789474513171ff9281df.tar.gz
recode functions to shrink size
Diffstat (limited to 'e2fsprogs/e2p/pe.c')
-rw-r--r--e2fsprogs/e2p/pe.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/e2fsprogs/e2p/pe.c b/e2fsprogs/e2p/pe.c
index 4cce691..07fb886 100644
--- a/e2fsprogs/e2p/pe.c
+++ b/e2fsprogs/e2p/pe.c
@@ -18,20 +18,14 @@
#include "e2p.h"
-void print_fs_errors (FILE * f, unsigned short errors)
+void print_fs_errors(FILE *f, unsigned short errors)
{
- switch (errors)
- {
- case EXT2_ERRORS_CONTINUE:
- fprintf (f, "Continue");
- break;
- case EXT2_ERRORS_RO:
- fprintf (f, "Remount read-only");
- break;
- case EXT2_ERRORS_PANIC:
- fprintf (f, "Panic");
- break;
- default:
- fprintf (f, "Unknown (continue)");
+ char *disp = NULL;
+ switch (errors) {
+ case EXT2_ERRORS_CONTINUE: disp = "Continue"; break;
+ case EXT2_ERRORS_RO: disp = "Remount read-only"; break;
+ case EXT2_ERRORS_PANIC: disp = "Panic"; break;
+ default: disp = "Unknown (continue)";
}
+ fprintf(f, disp);
}