Skip to contentSkip to conversation

extend exec_program[]

udev Applied Kay Sievers 2 participants 2 messages Dec 26, 2003 – Dec 30, 2003

lore
Share & tools
lore
#0 lore raw

extend exec_program size to 100 chars cause:

PROGRAM="/home/kay/src/udev.kay/extras/ide-devfs.sh %k %b %n"

is too long :)

thanks,
Kay

namedev.h +2 -1
diff -Nru a/namedev.h b/namedev.h
@@ -43,6 +43,7 @@
 #define VALUE_SIZE	100
 #define ID_SIZE		50
 #define PLACE_SIZE	50
+#define PROGRAM_SIZE	100
 
 #define TYPE_LABEL	"LABEL"
 #define TYPE_NUMBER	"NUMBER"
@@ -75,7 +76,7 @@
 	char id[ID_SIZE];
 	char place[PLACE_SIZE];
 	char kernel_name[NAME_SIZE];
-	char exec_program[FILE_SIZE];
+	char exec_program[PROGRAM_SIZE];
 	char name[NAME_SIZE];
 	char symlink[NAME_SIZE];
 	struct sysfs_pair sysfs_pair[MAX_SYSFS_PAIRS];
Applied
#1 lore raw
Quoted 6 lines · Kay Sievers

extend exec_program size to 100 chars cause:

PROGRAM="/home/kay/src/udev.kay/extras/ide-devfs.sh %k %b %n"

is too long :)

Applied, thanks.

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel