Fix indentation
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#define NOTICE "# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.\n" \
|
#define NOTICE "# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.\n" \
|
||||||
"# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES\n" \
|
"# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES\n" \
|
||||||
"# GO INTO %s NOT %s\n\n"
|
"# GO INTO %s NOT %s\n\n"
|
||||||
|
|
||||||
#define LDNOTICE "# ld.so.conf autogenerated by env-update; make all\n" \
|
#define LDNOTICE "# ld.so.conf autogenerated by env-update; make all\n" \
|
||||||
"# changes to contents of /etc/env.d directory\n"
|
"# changes to contents of /etc/env.d directory\n"
|
||||||
|
|||||||
@@ -393,18 +393,18 @@ static int _eindent (FILE *stream)
|
|||||||
|
|
||||||
#define VEINFON(_file, _colour) \
|
#define VEINFON(_file, _colour) \
|
||||||
if (colour_terminal ()) \
|
if (colour_terminal ()) \
|
||||||
fprintf (_file, " " _colour "*" EINFO_NORMAL " "); \
|
fprintf (_file, " " _colour "*" EINFO_NORMAL " "); \
|
||||||
else \
|
else \
|
||||||
fprintf (_file, " * "); \
|
fprintf (_file, " * "); \
|
||||||
retval += _eindent (_file); \
|
retval += _eindent (_file); \
|
||||||
{ \
|
{ \
|
||||||
va_list _ap; \
|
va_list _ap; \
|
||||||
va_copy (_ap, ap); \
|
va_copy (_ap, ap); \
|
||||||
retval += vfprintf (_file, fmt, _ap) + 3; \
|
retval += vfprintf (_file, fmt, _ap) + 3; \
|
||||||
va_end (_ap); \
|
va_end (_ap); \
|
||||||
} \
|
} \
|
||||||
if (colour_terminal ()) \
|
if (colour_terminal ()) \
|
||||||
fprintf (_file, "\033[K");
|
fprintf (_file, "\033[K");
|
||||||
|
|
||||||
static int _veinfon (const char *fmt, va_list ap)
|
static int _veinfon (const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ char **rc_config_env (char **env)
|
|||||||
|
|
||||||
memset (sys, 0, sizeof (sys));
|
memset (sys, 0, sizeof (sys));
|
||||||
|
|
||||||
/* Linux can run some funky stuff like Xen, VServer, UML, etc
|
/* Linux can run some funky stuff like Xen, VServer, UML, etc
|
||||||
We store this special system in RC_SYS so our scripts run fast */
|
We store this special system in RC_SYS so our scripts run fast */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (rc_is_dir ("/proc/xen"))
|
if (rc_is_dir ("/proc/xen"))
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ void setup_selinux (int argc, char **argv)
|
|||||||
/* FIXME: the below code generates the warning
|
/* FIXME: the below code generates the warning
|
||||||
ISO C forbids assignment between function pointer and 'void *'
|
ISO C forbids assignment between function pointer and 'void *'
|
||||||
which sucks ass
|
which sucks ass
|
||||||
http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html */
|
http://www.opengroup.org/onlinepubs/009695399/functions/dlsym.html */
|
||||||
selinux_run_init_old = dlsym (lib_handle, "selinux_runscript");
|
selinux_run_init_old = dlsym (lib_handle, "selinux_runscript");
|
||||||
selinux_run_init_new = dlsym (lib_handle, "selinux_runscript2");
|
selinux_run_init_new = dlsym (lib_handle, "selinux_runscript2");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user