aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2002-03-01 19:54:23 +0100
committerJuan Cespedes <cespedes@debian.org>2002-03-01 19:54:23 +0100
commit8cc1b9d456c8f41e3a8cc0d3ec0d77eb779cb7bb (patch)
treead52599fd70a115bbe3837fc0aca4fb2ba4ba3e2 /options.c
parent5916fda0d07da90cac8a78cbfa73374d81b150be (diff)
downloadltrace-8cc1b9d456c8f41e3a8cc0d3ec0d77eb779cb7bb.tar.gz
Version: 0.3.18
* Simplified arch-dependent stuff * Updated list of syscalls and signals to Linux 2.4.18 * Unified coding-style of all function declarations * Do not indent lines indicating signals, exit codes, etc * Updated description * fix off-by-one problem in checking syscall number (Tim Waugh <twaugh@redhat.com> fixed this problem in RedHat two years ago; thank you for NOT noticing me...)
Diffstat (limited to 'options.c')
-rw-r--r--options.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/options.c b/options.c
index 20ffeec..d3e53fd 100644
--- a/options.c
+++ b/options.c
@@ -48,8 +48,8 @@ struct opt_p_t * opt_p = NULL; /* attach to process with a given pid */
struct opt_e_t * opt_e = NULL;
int opt_e_enable=1;
-static void usage(void)
-{
+static void
+usage(void) {
#if !(HAVE_GETOPT || HAVE_GETOPT_LONG)
fprintf(stdout, "Usage: %s [command [arg ...]]\n"
"Trace library calls of a given program.\n\n", progname);
@@ -114,8 +114,8 @@ static void usage(void)
#endif
}
-static char * search_for_command(char * filename)
-{
+static char *
+search_for_command(char * filename) {
static char pathname[1024];
char *path;
int m, n;
@@ -142,8 +142,8 @@ static char * search_for_command(char * filename)
return filename;
}
-char ** process_options(int argc, char **argv)
-{
+char **
+process_options(int argc, char **argv) {
progname = argv[0];
output = stderr;