git.samba.org
/
obnox
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ed914
)
From RD Thrush: Fix for 'editcap relies on gnu extension to strptime(3)'
author
wmeier
<wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 17 Jan 2008 21:04:48 +0000
(21:04 +0000)
committer
wmeier
<wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 17 Jan 2008 21:04:48 +0000
(21:04 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24124
f5534014
-38df-0310-8fa8-
9805f1628bb7
editcap.c
patch
|
blob
|
history
diff --git
a/editcap.c
b/editcap.c
index 7e0b2ccf08789281c29c6f65960c24b9043d3689..de86cf6d4d2d51a0644a05621e170b868c17b6d0 100644
(file)
--- a/
editcap.c
+++ b/
editcap.c
@@
-520,7
+520,7
@@
int main(int argc, char *argv[])
memset(&starttm,0,sizeof(struct tm));
- if(!strptime(optarg,"%
F
%T",&starttm)) {
+ if(!strptime(optarg,"%
Y-%m-%d
%T",&starttm)) {
fprintf(stderr, "editcap: \"%s\" isn't a valid time format\n\n", optarg);
exit(1);
}
@@
-539,7
+539,7
@@
int main(int argc, char *argv[])
memset(&stoptm,0,sizeof(struct tm));
- if(!strptime(optarg,"%
F
%T",&stoptm)) {
+ if(!strptime(optarg,"%
Y-%m-%d
%T",&stoptm)) {
fprintf(stderr, "editcap: \"%s\" isn't a valid time format\n\n", optarg);
exit(1);
}