Style fixes, no code changes
* desc.c (sys_io_getevents): Indentation fix.
* file.c (sys_xstat): Remove space after function name.
(decode_mknod): Indentation fix.
* net.c (printsockopt): Indentation fix.
* process.c (unalignctl_string): Indentation fix.
(sys_sched_getscheduler): Remove space after ! operator.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/process.c b/process.c
index f6d5922..de30514 100644
--- a/process.c
+++ b/process.c
@@ -241,19 +241,19 @@
static const char *
unalignctl_string(unsigned int ctl)
{
- static char buf[16];
+ static char buf[sizeof(int)*2 + 2];
switch (ctl) {
#ifdef PR_UNALIGN_NOPRINT
- case PR_UNALIGN_NOPRINT:
- return "NOPRINT";
+ case PR_UNALIGN_NOPRINT:
+ return "NOPRINT";
#endif
#ifdef PR_UNALIGN_SIGBUS
- case PR_UNALIGN_SIGBUS:
- return "SIGBUS";
+ case PR_UNALIGN_SIGBUS:
+ return "SIGBUS";
#endif
- default:
- break;
+ default:
+ break;
}
sprintf(buf, "%x", ctl);
return buf;
@@ -2745,7 +2745,7 @@
{
if (entering(tcp)) {
tprintf("%d", (int) tcp->u_arg[0]);
- } else if (! syserror(tcp)) {
+ } else if (!syserror(tcp)) {
tcp->auxstr = xlookup(schedulers, tcp->u_rval);
if (tcp->auxstr != NULL)
return RVAL_STR;