ps: minor reformatting and trailing whitespace elimination
This patch mostly reorganizes include files and eliminates some useless trailing whitespace. It also adopts the standard procps-ng unconditional approach to nls initialization.
This commit is contained in:
22
ps/parser.c
22
ps/parser.c
@ -13,22 +13,21 @@
|
||||
* #define Print(fmt, args...) printf("Debug: " fmt, ## args)
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* username lookups */
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "common.h"
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "../proc/alloc.h"
|
||||
#include "../proc/version.h"
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#define ARG_GNU 0
|
||||
#define ARG_END 1
|
||||
#define ARG_PGRP 2
|
||||
@ -154,8 +153,7 @@ found_it:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int parse_usage_section(const char *opt)
|
||||
{
|
||||
static int parse_usage_section(const char *opt){
|
||||
if (!strcmp(opt, "s") || !strcmp(opt, "selection"))
|
||||
return USAGE_SELECTION;
|
||||
if (!strcmp(opt, "l") || !strcmp(opt, "list"))
|
||||
|
Reference in New Issue
Block a user