All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4888C284.50006@gmail.com>

diff --git a/a/1.txt b/N1/1.txt
index 6c82981..c869257 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -265,14 +265,14 @@ reading from the access chrdev as appropriate.
 +	struct iio_event_data dat;
 +	int device_no;
 +
-+	if (argc == 1)
++	if (argc = 1)
 +		return -1;
 +	device_no = atoi(argv[1]);
 +	pos = sprintf(temp, "/sys/class/industrialio/industrialio%d/device/",
 +		      device_no);
 +	sprintf(temp + pos, "ring_buffer0_access_minor");
 +	sysfsfp = fopen(temp, "r");
-+	if (sysfsfp == NULL) {
++	if (sysfsfp = NULL) {
 +		printf("failed to open minor stuff \n");
 +		return -1;
 +	}
@@ -283,7 +283,7 @@ reading from the access chrdev as appropriate.
 +	fclose(sysfsfp);
 +	sprintf(temp + pos, "ring_buffer0_ev_minor");
 +	sysfsfp = fopen(temp, "r");
-+	if (sysfsfp == NULL) {
++	if (sysfsfp = NULL) {
 +		printf("failed to open minor stuff \n");
 +		return -1;
 +	}
@@ -293,18 +293,18 @@ reading from the access chrdev as appropriate.
 +	sprintf(name2, "/dev/indringev%d", minor_ev);
 +
 +	fp = open(name, O_RDONLY | O_NONBLOCK);
-+	if (fp == -1) {
++	if (fp = -1) {
 +		sprintf(command, "mknod %s c 244 %d; mknod %s c 244 %d ",
 +			name, minor, name2, minor_ev);
 +		system(command);
 +		fp = open(name, O_RDONLY | O_NONBLOCK);
-+		if (fp == -1) {
++		if (fp = -1) {
 +			printf("Unable to open %s\n", name);
 +			return -1;
 +		}
 +	}
 +	fp_ev = fopen(name2, "rb");
-+	if (fp_ev == NULL)
++	if (fp_ev = NULL)
 +		printf("bug opening %s\n", name2);
 +	/* Wait for events 10 times */
 +	for (j = 0; j < 10; j++) {
@@ -312,7 +312,7 @@ reading from the access chrdev as appropriate.
 +				  fp_ev);
 +		printf("event code received: %d\n", dat.id);
 +		read_size = read(fp, (char *)(data), 100*(12+8));
-+		if (read_size == -EAGAIN)
++		if (read_size = -EAGAIN)
 +			printf("nothing available \n");
 +
 +		/* print a small amount of data */
@@ -327,3 +327,8 @@ reading from the access chrdev as appropriate.
 +	}
 +	return 0;
 +}
+
+_______________________________________________
+lm-sensors mailing list
+lm-sensors@lm-sensors.org
+http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
diff --git a/a/content_digest b/N1/content_digest
index d29c002..83ebc8e 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\0488763AD.4050400@gmail.com\0"
  "From\0Jonathan Cameron <Jonathan.Cameron@gmail.com>\0"
- "Subject\0[Patch 5/4] IndustrialIO subsystem very early cut of documentation + userspace demo\0"
- "Date\0Thu, 24 Jul 2008 18:57:24 +0100\0"
+ "Subject\0[lm-sensors] [Patch 5/4] IndustrialIO subsystem very early cut of\0"
+ "Date\0Thu, 24 Jul 2008 17:57:24 +0000\0"
  "To\0LKML <linux-kernel@vger.kernel.org>"
   spi-devel-general@lists.sourceforge.net
  " LM Sensors <lm-sensors@lm-sensors.org>\0"
@@ -282,14 +282,14 @@
  "+\tstruct iio_event_data dat;\n"
  "+\tint device_no;\n"
  "+\n"
- "+\tif (argc == 1)\n"
+ "+\tif (argc = 1)\n"
  "+\t\treturn -1;\n"
  "+\tdevice_no = atoi(argv[1]);\n"
  "+\tpos = sprintf(temp, \"/sys/class/industrialio/industrialio%d/device/\",\n"
  "+\t\t      device_no);\n"
  "+\tsprintf(temp + pos, \"ring_buffer0_access_minor\");\n"
  "+\tsysfsfp = fopen(temp, \"r\");\n"
- "+\tif (sysfsfp == NULL) {\n"
+ "+\tif (sysfsfp = NULL) {\n"
  "+\t\tprintf(\"failed to open minor stuff \\n\");\n"
  "+\t\treturn -1;\n"
  "+\t}\n"
@@ -300,7 +300,7 @@
  "+\tfclose(sysfsfp);\n"
  "+\tsprintf(temp + pos, \"ring_buffer0_ev_minor\");\n"
  "+\tsysfsfp = fopen(temp, \"r\");\n"
- "+\tif (sysfsfp == NULL) {\n"
+ "+\tif (sysfsfp = NULL) {\n"
  "+\t\tprintf(\"failed to open minor stuff \\n\");\n"
  "+\t\treturn -1;\n"
  "+\t}\n"
@@ -310,18 +310,18 @@
  "+\tsprintf(name2, \"/dev/indringev%d\", minor_ev);\n"
  "+\n"
  "+\tfp = open(name, O_RDONLY | O_NONBLOCK);\n"
- "+\tif (fp == -1) {\n"
+ "+\tif (fp = -1) {\n"
  "+\t\tsprintf(command, \"mknod %s c 244 %d; mknod %s c 244 %d \",\n"
  "+\t\t\tname, minor, name2, minor_ev);\n"
  "+\t\tsystem(command);\n"
  "+\t\tfp = open(name, O_RDONLY | O_NONBLOCK);\n"
- "+\t\tif (fp == -1) {\n"
+ "+\t\tif (fp = -1) {\n"
  "+\t\t\tprintf(\"Unable to open %s\\n\", name);\n"
  "+\t\t\treturn -1;\n"
  "+\t\t}\n"
  "+\t}\n"
  "+\tfp_ev = fopen(name2, \"rb\");\n"
- "+\tif (fp_ev == NULL)\n"
+ "+\tif (fp_ev = NULL)\n"
  "+\t\tprintf(\"bug opening %s\\n\", name2);\n"
  "+\t/* Wait for events 10 times */\n"
  "+\tfor (j = 0; j < 10; j++) {\n"
@@ -329,7 +329,7 @@
  "+\t\t\t\t  fp_ev);\n"
  "+\t\tprintf(\"event code received: %d\\n\", dat.id);\n"
  "+\t\tread_size = read(fp, (char *)(data), 100*(12+8));\n"
- "+\t\tif (read_size == -EAGAIN)\n"
+ "+\t\tif (read_size = -EAGAIN)\n"
  "+\t\t\tprintf(\"nothing available \\n\");\n"
  "+\n"
  "+\t\t/* print a small amount of data */\n"
@@ -343,6 +343,11 @@
  "+\t\t}\n"
  "+\t}\n"
  "+\treturn 0;\n"
- +}
+ "+}\n"
+ "\n"
+ "_______________________________________________\n"
+ "lm-sensors mailing list\n"
+ "lm-sensors@lm-sensors.org\n"
+ http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
 
-da026c0e388c1c13512a49feb3e4b6362de608b23f3bab821ccb70e04267f669
+eead2408b26903b376cb7a70a506d811c79c9a98b5bffd76d0564f675d500113

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.