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
7cad1f75
Commit
7cad1f75
authored
7 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes
parent
3221372d
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
dongle_infrastructure.c
+3
-1
3 additions, 1 deletion
dongle_infrastructure.c
dongle_infrastructure.h
+1
-0
1 addition, 0 deletions
dongle_infrastructure.h
with
4 additions
and
1 deletion
dongle_infrastructure.c
+
3
−
1
View file @
7cad1f75
...
@@ -176,6 +176,7 @@ char *lexer(char **input, char *delimiter)
...
@@ -176,6 +176,7 @@ char *lexer(char **input, char *delimiter)
perror
(
"strdup"
);
perror
(
"strdup"
);
goto
fail_strdup
;
goto
fail_strdup
;
}
}
*
input
=
token
+
strlen
(
delimiter
);
*
input
=
token
+
strlen
(
delimiter
);
}
else
{
}
else
{
substr
=
strdup
(
*
input
);
substr
=
strdup
(
*
input
);
...
@@ -183,6 +184,7 @@ char *lexer(char **input, char *delimiter)
...
@@ -183,6 +184,7 @@ char *lexer(char **input, char *delimiter)
perror
(
"strdup"
);
perror
(
"strdup"
);
goto
fail_strdup
;
goto
fail_strdup
;
}
}
*
input
[
0
]
=
'\0'
;
*
input
[
0
]
=
'\0'
;
}
}
...
@@ -365,7 +367,7 @@ fail:
...
@@ -365,7 +367,7 @@ fail:
char
*
get_device_ip
(
char
*
device_name
)
char
*
get_device_ip
(
char
*
device_name
)
{
{
char
*
iface
,
*
destination
,
*
gateway
,
*
flags
,
*
route
,
*
binary
,
*
ipv4_addr
=
NULL
;
char
*
iface
,
*
destination
,
*
gateway
,
*
flags
,
*
route
,
*
ipv4_addr
=
NULL
;
bool
host_flag
;
bool
host_flag
;
struct
in_addr
addr
;
struct
in_addr
addr
;
FILE
*
fp
;
FILE
*
fp
;
...
...
This diff is collapsed.
Click to expand it.
dongle_infrastructure.h
+
1
−
0
View file @
7cad1f75
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#define IPV4_MAX 16
#define IPV4_MAX 16
#define DYNAMIC_OBJ_NAME_SIZE 50
#define DYNAMIC_OBJ_NAME_SIZE 50
struct
USB
{
struct
USB
{
char
*
product
;
char
*
product
;
char
*
product_id
;
char
*
product_id
;
...
...
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