chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] udev - CALLOUT is PROGRAM now
[elogind.git]
/
namedev.c
diff --git
a/namedev.c
b/namedev.c
index fdc6252bf66fa46583ca97b4b9fab0389b12bb12..6f7bfb6805826085cc0ecaff165f9f5937075251 100644
(file)
--- a/
namedev.c
+++ b/
namedev.c
@@
-309,7
+309,7
@@
static int execute_program(char *path, char *value, int len)
int value_set = 0;
char buffer[256];
char *pos;
int value_set = 0;
char buffer[256];
char *pos;
- char *args[
CALLOUT
_MAXARG];
+ char *args[
PROGRAM
_MAXARG];
int i;
dbg("executing '%s'", path);
int i;
dbg("executing '%s'", path);
@@
-331,7
+331,7
@@
static int execute_program(char *path, char *value, int len)
if (strchr(path, ' ')) {
/* exec with arguments */
pos = path;
if (strchr(path, ' ')) {
/* exec with arguments */
pos = path;
- for (i=0; i <
CALLOUT
_MAXARG-1; i++) {
+ for (i=0; i <
PROGRAM
_MAXARG-1; i++) {
args[i] = strsep(&pos, " ");
if (args[i] == NULL)
break;
args[i] = strsep(&pos, " ");
if (args[i] == NULL)
break;