summaryrefslogtreecommitdiff
path: root/nci/jni/IntervalTimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nci/jni/IntervalTimer.cpp')
-rw-r--r--nci/jni/IntervalTimer.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/nci/jni/IntervalTimer.cpp b/nci/jni/IntervalTimer.cpp
index 9453451d..f3f94415 100644
--- a/nci/jni/IntervalTimer.cpp
+++ b/nci/jni/IntervalTimer.cpp
@@ -13,6 +13,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+/******************************************************************************
+ *
+ * The original Work has been changed by NXP Semiconductors.
+ *
+ * Copyright (C) 2013-2014 NXP Semiconductors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
/*
* Asynchronous interval timer.
@@ -80,7 +99,7 @@ void IntervalTimer::kill()
bool IntervalTimer::create(TIMER_FUNC cb)
{
- struct sigevent se;
+ struct sigevent se = {0};
int stat = 0;
/*