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
48f6d433
Commit
48f6d433
authored
7 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
fix some warnings in network.c
parent
c2de7de0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dongle_network.c
+7
-21
7 additions, 21 deletions
dongle_network.c
with
7 additions
and
21 deletions
dongle_network.c
+
7
−
21
View file @
48f6d433
...
...
@@ -18,9 +18,7 @@ int get_signal_strength(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
@@ -43,9 +41,7 @@ int connect_network(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
@@ -68,9 +64,7 @@ int disconnect(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
@@ -94,9 +88,7 @@ int modem_state(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
@@ -120,9 +112,7 @@ int enable_roaming(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
@@ -146,9 +136,7 @@ int disable_roaming(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
@@ -172,9 +160,7 @@ int roam_status(struct ubus_context *ctx, struct ubus_object *obj,
free
(
ip_addr
);
return
print_to_ubus
(
response
,
ctx
,
req
);
fail_argument:
free
(
ip_addr
);
return
UBUS_STATUS_INVALID_ARGUMENT
;
fail_unknown:
free
(
ip_addr
);
fail_strdup:
...
...
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