Skip to content

Commit aeaf585

Browse files
committed
app_wakeupcall: Fix uninitialized usage warning.
1 parent 35b17f0 commit aeaf585

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

apps/app_wakeupcall.c

+2
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ static int scheduler(struct ast_channel *chan, int hr, int min, enum wuc_type ty
304304
int res;
305305
const char *timezone = wuc->timezone;
306306

307+
when = ast_tvnow();
308+
307309
/* First, fetch the time using the system time zone instead of the user's time zone.
308310
* Note that in this function, by system time, we mean the system's local time, not necessarily UTC. */
309311
ast_localtime(&when, &tm, NULL);

phreaknet.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -1298,18 +1298,19 @@ install_wanpipe() {
12981298
tar xvfz ${WANPIPE_SOURCE_NAME}.tgz
12991299
rm ${WANPIPE_SOURCE_NAME}.tgz
13001300
cd ${WANPIPE_SOURCE_NAME}
1301-
phreak_fuzzy_patch "af_wanpipe.diff"
1301+
#phreak_fuzzy_patch "af_wanpipe.diff"
13021302

1303-
if [ "$MYSOURCEDIRORIG" != "$MYSOURCEDIR" ]; then
1304-
echoerr "Your system uses recursive Makefile includes, which wanpipe doesn't yet support... specifying the proper directory explicitly for you"
1303+
#if [ "$MYSOURCEDIRORIG" != "$MYSOURCEDIR" ]; then
1304+
# echoerr "Your system uses recursive Makefile includes, which wanpipe doesn't yet support... specifying the proper directory explicitly for you"
13051305
### XXX Currently an issue on Debian (see issue #3 on GitHub). Sangoma is supposedly working on this currently as well.
13061306
### BUGBUG This makes it get further than before, but doesn't fully work yet.
1307-
./Setup dahdi --silent --with-linux=$MYSOURCEDIR
1308-
else
1307+
# ./Setup dahdi --silent --with-linux=$MYSOURCEDIR
1308+
#else
13091309
./Setup dahdi --silent
1310-
fi
1310+
#fi
13111311

13121312
if [ $? -ne 0 ]; then
1313+
# XXX Should have an option to fail here forcibly, for testing.
13131314
echoerr "wanpipe install failed: unsupported kernel?"
13141315
sleep 1
13151316
#exit 2
@@ -1500,6 +1501,7 @@ phreak_patches() { # $1 = $PATCH_DIR, $2 = $AST_SRC_DIR
15001501
gerrit_patch 19600 "https://gerrit.asterisk.org/changes/asterisk~19600/revisions/1/patch?download" # callerid: Allow specifying timezone.
15011502
gerrit_patch 19712 "https://gerrit.asterisk.org/changes/asterisk~19712/revisions/7/patch?download" # chan_iax2: Fix stalled jitterbuffer
15021503
gerrit_patch 19744 "https://gerrit.asterisk.org/changes/asterisk~19744/revisions/1/patch?download" # config.c: fix template inheritance/overrides
1504+
gerrit_patch 19927 "https://gerrit.asterisk.org/changes/asterisk~19927/revisions/1/patch?download" # app_senddtmf: Add SendFlash AMI action
15031505

15041506
if [ "$EXTERNAL_CODECS" = "1" ]; then
15051507
phreak_nontree_patch "main/translate.c" "translate.diff" "https://issues.asterisk.org/jira/secure/attachment/60464/translate.diff" # Bug fix to translation code

0 commit comments

Comments
 (0)