mirror of
https://github.com/openharmony/applications_sample_camera.git
synced 2026-07-01 14:21:52 -04:00
!149 部件编译整改黄区代码检查告警消除
Merge pull request !149 from tongkai0808fh/master
This commit is contained in:
@@ -185,7 +185,8 @@ void SettingWifiInputPasswordAbilitySlice::AddInputKeyBoardZero(void)
|
||||
inputButton->SetStyle(STYLE_TEXT_COLOR, DE_TITLE_TEXT_COLOR);
|
||||
inputButton->SetFont(DE_FONT_OTF, DE_TITLE_TEXT_SIZE);
|
||||
|
||||
clickLeftListener_ = new TestBtnOnClickInputPasswordChangeListener((UILabel*)lablelInputText_, (UILabel*)lablelCursorText_, inputNum, CURSOR_POSITION_OFFSET);
|
||||
clickLeftListener_ = new TestBtnOnClickInputPasswordChangeListener((UILabel*)lablelInputText_, \
|
||||
(UILabel*)lablelCursorText_, inputNum, CURSOR_POSITION_OFFSET);
|
||||
inputButton->SetOnClickListener(clickLeftListener_);
|
||||
scrollView_->Add(inputButton);
|
||||
}
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
|
||||
#include "wpa_work.h"
|
||||
#include <sys/prctl.h>
|
||||
#include <string.h>
|
||||
|
||||
#define WPA_IFACE_NAME "wlan0"
|
||||
#define WIFI_AUTH_FAILED_REASON_STR "WRONG_KEY"
|
||||
#define WIFI_AUTH_FAILED_REASON_CODE "reason=2"
|
||||
#define WPA_CTRL_REQUEST_OK "OK"
|
||||
#define WPA_CTRL_REQUEST_FAIL "FAIL"
|
||||
#define PATH "/storage/app/run/com.huawei.setting/setting/assets/setting/resources/base/element/wpa_supplicant.conf"
|
||||
|
||||
#define SAMPLE_INFO(format, args...) \
|
||||
do { \
|
||||
@@ -486,16 +486,11 @@ static void *ThreadMain()
|
||||
int i = 0;
|
||||
int myfor = 5;
|
||||
char *arg[20] = {0};
|
||||
char argstr1[] = "/storage/app/run/com.huawei.setting/setting/assets";
|
||||
char argstr2[] = "/setting/resources/base/element/wpa_supplicant.conf";
|
||||
char argstr[120];
|
||||
strcpy_s(argstr, strlen(argstr1) + 1, argstr1);
|
||||
strcat_s(argstr, strlen(argstr2) + 1, argstr2);
|
||||
arg[i] = (char *)"wpa_supplicant";
|
||||
arg[++i] = (char *)"-i";
|
||||
arg[++i] = (char *)"wlan0";
|
||||
arg[++i] = (char *)"-c";
|
||||
arg[++i] = (char *)argstr;
|
||||
arg[++i] = (char *)PATH;
|
||||
|
||||
for (i = 0; i < myfor; i++) {
|
||||
printf("[LOG]arg[%d]->%s \n", i, arg[i]);
|
||||
|
||||
Reference in New Issue
Block a user