Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54695
b: refs/heads/master
c: 7f76c40
h: refs/heads/master
i:
  54693: f6838af
  54691: 1606ffb
  54687: 5961826
v: v3
  • Loading branch information
Scott Wiersdorf authored and Linus Torvalds committed May 8, 2007
1 parent 341d253 commit 717c610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1ab824be43842ae7429ab1df37153e1cebb4d32
refs/heads/master: 7f76c403751ab917b2ebed5663079a6b2956eebd
6 changes: 2 additions & 4 deletions trunk/Documentation/accounting/getdelays.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ __u64 stime, utime;
#define MAX_MSG_SIZE 1024
/* Maximum number of cpus expected to be specified in a cpumask */
#define MAX_CPUS 32
/* Maximum length of pathname to log file */
#define MAX_FILENAME 256

struct msgtemplate {
struct nlmsghdr n;
Expand Down Expand Up @@ -231,7 +229,7 @@ int main(int argc, char *argv[])
int count = 0;
int write_file = 0;
int maskset = 0;
char logfile[128];
char *logfile = NULL;
int loop = 0;

struct msgtemplate msg;
Expand All @@ -251,7 +249,7 @@ int main(int argc, char *argv[])
print_io_accounting = 1;
break;
case 'w':
strncpy(logfile, optarg, MAX_FILENAME);
logfile = strdup(optarg);
printf("write to file %s\n", logfile);
write_file = 1;
break;
Expand Down

0 comments on commit 717c610

Please sign in to comment.