Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IOPSYS
mdmngr
Commits
a4ca0ed7
Commit
a4ca0ed7
authored
7 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
some warning fixes
parent
294184c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common.c
+1
-1
1 addition, 1 deletion
common.c
libmobile_zte.c
+3
-3
3 additions, 3 deletions
libmobile_zte.c
with
4 additions
and
4 deletions
common.c
+
1
−
1
View file @
a4ca0ed7
...
...
@@ -155,7 +155,7 @@ fail:
int
pin_status
(
struct
blob_buf
*
bb
,
char
*
ip_addr
)
{
struct
json_object
*
response
,
*
rv_json
;
char
*
rv
;
const
char
*
rv
;
int
pin_status
;
response
=
mobile_get_pin_status_zte
(
ip_addr
);
...
...
This diff is collapsed.
Click to expand it.
libmobile_zte.c
+
3
−
3
View file @
a4ca0ed7
...
...
@@ -14,7 +14,7 @@ static void curl_cleaner(CURLcode *curl);
static
size_t
write_func
(
void
*
buffer
,
size_t
size
,
size_t
nmemb
,
void
*
data
);
static
int
apn_profile_idx
(
struct
json_object
*
apn_profiles
,
char
*
name
);
static
int
get_apn_profiles_len
(
char
*
ip_addr
);
static
char
*
lexer
(
char
**
input
,
char
*
delimiter
);
static
char
*
lexer
(
const
char
**
input
,
char
*
delimiter
);
static
char
*
get_query_wrapper
(
char
*
ip_addr
,
char
*
vars
);
static
CURLcode
perform_post_request
(
char
*
ip_addr
,
CURL
*
curl
,
char
*
query
,
struct
string
*
str
);
static
CURLcode
perform_get_request
(
char
*
ip_addr
,
CURL
*
curl
,
char
*
query
,
struct
string
*
str
);
...
...
@@ -159,7 +159,7 @@ fail:
* Will alter the input string and allocate memory for the return value!
* The caller is responsible for freeing the return value.
*/
static
char
*
lexer
(
char
**
input
,
char
*
delimiter
)
static
char
*
lexer
(
const
char
**
input
,
char
*
delimiter
)
{
char
*
token
,
*
substr
;
...
...
@@ -351,7 +351,7 @@ static struct json_object *parse_apn_profiles(struct json_object *apn_profiles)
char
*
field_names
[
13
]
=
{
"profile_name"
,
"apn_name"
,
"mode"
,
"wan_dial"
,
"ppp_auth_mode"
,
"ppp_username"
,
"ppp_passwd"
,
"pdp"
,
"pdpd_select"
,
"pdp_addr"
,
"dns_mode"
,
"prefer_dns_manual"
,
"standby_dns_manual"
};
json_object_object_foreach
(
apn_profiles
,
key
,
val
)
{
char
*
apn_string
=
json_object_get_string
(
val
);
const
char
*
apn_string
=
json_object_get_string
(
val
);
int
i
=
0
;
struct
json_object
*
apn_profile
=
json_object_new_object
();
char
*
field_val
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment