[openib-general] [PATCHv2] libibcm: Fix some typos

Hal Rosenstock halr at voltaire.com
Wed Jul 13 16:14:24 PDT 2005


libibcm: Fix some typos

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: include/infiniband/cm.h
===================================================================
--- include/infiniband/cm.h	(revision 2824)
+++ include/infiniband/cm.h	(working copy)
@@ -274,7 +274,7 @@ int ib_cm_event_put(struct ib_cm_event *
  * The primary use of the file descriptor is to test for CM readiness
  * events. When the CM becomes ready to READ there is a pending event
  * ready, and a subsequent call to ib_cm_event_get will not block.
- * Note: The user should not read or writ directly to the CM file
+ * Note: The user should not read or write directly to the CM file
  *       descriptor, it will likely result in an error or unexpected
  *       results.
  */
@@ -300,6 +300,7 @@ struct ib_cm_attr_param {
 	uint32_t		local_id;
 	uint32_t		remote_id;
 };
+
 /**
  * ib_cm_attr_id - Get connection identifier attributes.
  * @cm_id: Connection identifier to retrieve attributes.
Index: src/cm.c
===================================================================
--- src/cm.c	(revision 2824)
+++ src/cm.c	(working copy)
@@ -181,7 +181,6 @@ int ib_cm_attr_id(uint32_t cm_id, struct
 
 	cmd->id = cm_id;
 
-
 	result = write(fd, msg, size);
 	if (result != size)
 		return (result > 0) ? -ENODATA : result;
Index: examples/simple.c
===================================================================
--- examples/simple.c	(revision 2824)
+++ examples/simple.c	(working copy)
@@ -124,6 +124,7 @@ int main(int argc, char **argv)
 	int param_c = 0;
 	int status = 0;
 	int mode;
+
 	/*
 	 * read command line.
 	 */
@@ -153,7 +154,7 @@ int main(int argc, char **argv)
 	else {
 		result = ib_cm_listen(cm_id, TEST_SID, 0);
 		if (result) {
-			printf("Error <%d:%d> listneing <%d>\n", 
+			printf("Error <%d:%d> listening <%d>\n", 
 			       result, errno, cm_id);
 			goto done;
 		}






More information about the general mailing list