Re-indent to a standard tw of 8.
This commit is contained in:
parent
fec312d448
commit
abde759d5b
@ -106,6 +106,12 @@ hidden_proto(ewendv)
|
||||
#define ME "\033[m"
|
||||
#define UP "\033[A"
|
||||
|
||||
#define _GET_CAP(_d, _c) strlcpy (_d, tgoto (_c, 0, 0), sizeof (_d));
|
||||
#define _ASSIGN_CAP(_v) { \
|
||||
_v = p; \
|
||||
p += strlcpy (p, tmp, sizeof (ebuffer) - (p - ebuffer)) + 1; \
|
||||
}
|
||||
|
||||
/* A pointer to a string to prefix to einfo/ewarn/eerror messages */
|
||||
static const char *_eprefix = NULL;
|
||||
|
||||
@ -388,12 +394,6 @@ static bool colour_terminal (FILE * __EINFO_RESTRICT f)
|
||||
}
|
||||
#endif
|
||||
|
||||
#define _GET_CAP(_d, _c) strlcpy (_d, tgoto (_c, 0, 0), sizeof (_d));
|
||||
#define _ASSIGN_CAP(_v) { \
|
||||
_v = p; \
|
||||
p += strlcpy (p, tmp, sizeof (ebuffer) - (p - ebuffer)) + 1; \
|
||||
}
|
||||
|
||||
/* Now setup our colours */
|
||||
p = ebuffer;
|
||||
for (i = 0; i < sizeof (ecolors) / sizeof (ecolors[0]); i++) {
|
||||
@ -557,9 +557,10 @@ const char *ecolor (einfo_color_t color)
|
||||
return (_ecolor (f, color));
|
||||
}
|
||||
|
||||
#define LASTCMD(_cmd) \
|
||||
#define LASTCMD(_cmd) { \
|
||||
unsetenv ("EINFO_LASTCMD"); \
|
||||
setenv ("EINFO_LASTCMD", _cmd, 1);
|
||||
setenv ("EINFO_LASTCMD", _cmd, 1); \
|
||||
}
|
||||
|
||||
#define EINFOVN(_file, _color) \
|
||||
{ \
|
||||
|
@ -202,11 +202,13 @@ int checkpath (int argc, char **argv)
|
||||
break;
|
||||
case 'm':
|
||||
if (parse_mode (&mode, optarg) != 0)
|
||||
eerrorx ("%s: invalid mode `%s'", applet, optarg);
|
||||
eerrorx ("%s: invalid mode `%s'",
|
||||
applet, optarg);
|
||||
break;
|
||||
case 'o':
|
||||
if (parse_owner (&pw, &gr, optarg) != 0)
|
||||
eerrorx ("%s: owner `%s' not found", applet, optarg);
|
||||
eerrorx ("%s: owner `%s' not found",
|
||||
applet, optarg);
|
||||
break;
|
||||
|
||||
case_RC_COMMON_GETOPT
|
||||
|
Loading…
Reference in New Issue
Block a user