projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Honour tty field in /etc/inittab
[project/procd.git]
/
utils
/
utils.c
diff --git
a/utils/utils.c
b/utils/utils.c
index
a8c2a91
..
e782e44
100644
(file)
--- a/
utils/utils.c
+++ b/
utils/utils.c
@@
-129,8
+129,8
@@
blobmsg_list_equal(struct blobmsg_list *l1, struct blobmsg_list *l2)
char* get_cmdline_val(const char* name, char* out, int len)
{
char* get_cmdline_val(const char* name, char* out, int len)
{
- char pattern[C
OMMAND_
LINE_SIZE + 1];
- char line[C
OMMAND_
LINE_SIZE + 1];
+ char pattern[C
MD
LINE_SIZE + 1];
+ char line[C
MD
LINE_SIZE + 1];
char *res = NULL, *tty;
int r, fd;
regex_t pat_cmdline;
char *res = NULL, *tty;
int r, fd;
regex_t pat_cmdline;
@@
-140,7
+140,7
@@
char* get_cmdline_val(const char* name, char* out, int len)
if (fd < 0)
return NULL;
if (fd < 0)
return NULL;
- r = read(fd, line, C
OMMAND_
LINE_SIZE);
+ r = read(fd, line, C
MD
LINE_SIZE);
if ( r <= 0 ) {
close(fd);
return NULL;
if ( r <= 0 ) {
close(fd);
return NULL;