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:
Jim Warner
2011-12-27 16:22:43 -06:00
committed by Craig Small
parent fe20653a4e
commit 71b72b36ce
9 changed files with 59 additions and 65 deletions

View File

@ -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"))