Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4158)

Unified Diff: bootstat.c

Issue 3129002: Create a bootstat library for external C and C++ programs (Closed) Base URL: ssh://gitrw.chromium.org/bootstat.git
Patch Set: Fix whitespace issue found by presubmit check Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bootstat.h ('k') | bootstat_log.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bootstat.c
diff --git a/bootstat.c b/bootstat.c
index 3a2f1f669430268e9b182402f2162f6b755032d1..573f9efe7880bb50bdfd6023022391f6890c3dc8 100644
--- a/bootstat.c
+++ b/bootstat.c
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Implementation of the 'bootstat' command, part of the Chromium OS
+// 'bootstat' facility. The command provides a command line wrapper
+// around the key functionality declared in "bootstat.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -10,14 +14,14 @@
#include "bootstat.h"
-static void usage(char *cmd)
+static void usage(char* cmd)
{
fprintf(stderr, "usage: %s <event-name>\n", basename(strdup(cmd)));
exit(EXIT_FAILURE);
}
-int main(int argc, char *argv[])
+int main(int argc, char* argv[])
{
if (argc != 2)
usage(argv[0]);
« no previous file with comments | « bootstat.h ('k') | bootstat_log.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698