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
8a1428e1
Commit
8a1428e1
authored
6 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
lib_commons: some cleanup
parent
01b065e0
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
lib_commons.c
+0
-19
0 additions, 19 deletions
lib_commons.c
lib_commons.h
+0
-8
0 additions, 8 deletions
lib_commons.h
with
0 additions
and
27 deletions
lib_commons.c
+
0
−
19
View file @
8a1428e1
/** @file libcommons.c */
#include
"lib_commons.h"
struct
key_exchange
*
prep_key_obj
(
char
*
current
,
char
*
desired
)
{
struct
key_exchange
*
obj
;
if
(
current
[
0
]
==
'\0'
||
desired
[
0
]
==
'\0'
)
goto
fail
;
obj
=
calloc
(
1
,
sizeof
(
struct
key_exchange
));
if
(
!
obj
)
goto
fail
;
obj
->
current_key
=
current
;
obj
->
desired_key
=
desired
;
return
obj
;
fail:
return
NULL
;
}
size_t
write_func
(
void
*
buffer
,
size_t
size
,
size_t
nmemb
,
void
*
data
)
{
struct
string
*
str
=
(
struct
string
*
)
data
;
...
...
This diff is collapsed.
Click to expand it.
lib_commons.h
+
0
−
8
View file @
8a1428e1
...
...
@@ -8,14 +8,6 @@
#include
"keys.h"
/**
* Struct used to provide consistent keys to ubus.
*/
struct
key_exchange
{
char
*
current_key
;
/*!< Current key to be altered. */
char
*
desired_key
;
/*!< Key to use. */
};
#define HARDWARE_VERSION_Z "hardware_version"
#define HARDWARE_VERSION_H ""
#define HARDWARE_VERSION "hardware_version"
...
...
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