Skip to content

Commit

Permalink
Fix various typos
Browse files Browse the repository at this point in the history
Problem: Words are spelled wrong!

Solution: Fix the spelling.
  • Loading branch information
chu11 authored and bluca committed Aug 26, 2023
1 parent b588b95 commit 899f819
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MAN1 = zmakecert.1
MAN3 = zactor.3 zargs.3 zarmour.3 zcert.3 zcertstore.3 zchunk.3 zclock.3 zconfig.3 zdigest.3 zdir.3 zdir_patch.3 zfile.3 zframe.3 zhash.3 zhashx.3 ziflist.3 zlist.3 zlistx.3 zloop.3 zmsg.3 zpoller.3 zproc.3 zsock.3 zstr.3 zsys.3 ztimerset.3 ztrie.3 zuuid.3 zhttp_client.3 zhttp_server.3 zhttp_server_options.3 zhttp_request.3 zhttp_response.3 zosc.3 zauth.3 zbeacon.3 zgossip.3 zmonitor.3 zproxy.3 zrex.3
# Project overview, written by a human after initial skeleton:
# NOTE: stub doc/czmq.adoc is generated by GSL from project.xml
# and then comitted to SCM and maintained manually to describe the
# and then committed to SCM and maintained manually to describe the
# project (section 7 = Overview, conventions, and miscellaneous).
MAN7 = czmq.7
MAN_DOC = $(MAN1) $(MAN3) $(MAN7)
Expand Down
2 changes: 1 addition & 1 deletion doc/czmq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Technical Aspects
* *Library versioning*: we don't make any attempt to version the library at this stage. Classes are in our experience highly stable once they are built and tested, the only changes typically being added methods.
* *Performance*: for critical path processing, you may want to avoid creating and destroying classes. However on modern Linux systems the heap allocator is very fast. Individual classes can choose whether or not to nullify their data on allocation.
* *Self-testing*: every class has a `selftest` method that runs through the methods of the class. In theory, calling all selftest functions of all classes does a full unit test of the library. The `czmq_selftest` application does this.
* *Memory management*: CZMQ classes do not use any special memory management techiques to detect leaks. We've done this in the past but it makes the code relatively complex. Instead, we do memory leak testing using tools like valgrind.
* *Memory management*: CZMQ classes do not use any special memory management techniques to detect leaks. We've done this in the past but it makes the code relatively complex. Instead, we do memory leak testing using tools like valgrind.

Under the Hood
--------------
Expand Down
6 changes: 3 additions & 3 deletions include/zproc.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ CZMQ_EXPORT void
// *** Draft method, for development use, may change without warning ***
// Connects process stdin with a readable ('>', connect) zeromq socket. If
// socket argument is NULL, zproc creates own managed pair of inproc
// sockets. The writable one is then accessbile via zproc_stdin method.
// sockets. The writable one is then accessible via zproc_stdin method.
CZMQ_EXPORT void
zproc_set_stdin (zproc_t *self, void *socket);

// *** Draft method, for development use, may change without warning ***
// Connects process stdout with a writable ('@', bind) zeromq socket. If
// socket argument is NULL, zproc creates own managed pair of inproc
// sockets. The readable one is then accessbile via zproc_stdout method.
// sockets. The readable one is then accessible via zproc_stdout method.
CZMQ_EXPORT void
zproc_set_stdout (zproc_t *self, void *socket);

// *** Draft method, for development use, may change without warning ***
// Connects process stderr with a writable ('@', bind) zeromq socket. If
// socket argument is NULL, zproc creates own managed pair of inproc
// sockets. The readable one is then accessbile via zproc_stderr method.
// sockets. The readable one is then accessible via zproc_stderr method.
CZMQ_EXPORT void
zproc_set_stderr (zproc_t *self, void *socket);

Expand Down
2 changes: 1 addition & 1 deletion src/zauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ typedef struct {
char *domain; // Server socket domain
char *address; // Client IP address
char *identity; // Server socket idenntity
char *mechanism; // Security mechansim
char *mechanism; // Security mechanism
char *username; // PLAIN user name
char *password; // PLAIN password, in clear text
char *client_key; // CURVE client public key in ASCII
Expand Down
4 changes: 2 additions & 2 deletions src/zhashx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ s_test_serialize_int (const void *item)
}

static void *
s_test_deserialze_int (const char *str_item)
s_test_deserialize_int (const char *str_item)
{
int *int_item = (int *) zmalloc (sizeof (int));
sscanf (str_item, "%d", int_item);
Expand Down Expand Up @@ -1237,7 +1237,7 @@ zhashx_test (bool verbose)
zhashx_insert (own_hash, "val1", val1);
zhashx_insert (own_hash, "val2", val2);
frame = zhashx_pack_own (own_hash, s_test_serialize_int);
copy = zhashx_unpack_own (frame, s_test_deserialze_int);
copy = zhashx_unpack_own (frame, s_test_deserialize_int);
zhashx_set_destructor (copy, s_test_destroy_int);
zframe_destroy (&frame);
assert (zhashx_size (copy) == 2);
Expand Down
2 changes: 1 addition & 1 deletion src/zsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ zsock_vsend (void *self, const char *picture, va_list argptr)
// l = zlistx_t ** (creates zlistx)
// U = zuuid_t * (creates a zuuid with the data)
// p = void ** (stores pointer)
// m = zmsg_t ** (creates a zmsg with the remaing frames)
// m = zmsg_t ** (creates a zmsg with the remaining frames)
// z = null, asserts empty frame (0 arguments)
// u = uint * (stores unsigned integer, deprecated)
//
Expand Down
2 changes: 1 addition & 1 deletion src/zsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ char *
s_zsys_vprintf_hint (int hint, const char *format, va_list argptr)
{
if (hint <= 0) {
// The hint is not a hard requrement so no error here.
// The hint is not a hard requirement so no error here.
// Just fall back to legacy default.
hint = 256;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ztrie.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ typedef struct _ztrie_node_t {
// Structure of our class

struct _ztrie_t {
char delimiter; // Character that seperates the tokens of a route
char delimiter; // Character that separates the tokens of a route
ztrie_node_t *root; // Root node of this tree
ztrie_node_t *match; // Last match made by ztrie_matches
zlistx_t *params; // List of regex parameters found during parsing
Expand Down

1 comment on commit 899f819

@paddor
Copy link
Contributor

@paddor paddor commented on 899f819 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of these fixes will be overwritten the next time someone runs gsl project.xml. @chu11 you should fix the typos in https://github.com/zeromq/zproject

Please sign in to comment.