patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Subject: [PATCH ucspi-vsock] num: rename from util
Date: Thu, 18 Mar 2021 00:35:45 +0000	[thread overview]
Message-ID: <20210318003545.13414-1-hi@alyssa.is> (raw)

I don't want to have anything called "util", because that will
inevitably become a dumping ground for all sorts of unrelated stuff.
---
 Makefile        | 14 +++++++-------
 util.c => num.c |  2 +-
 util.h => num.h |  0
 vsockclient.c   |  2 +-
 vsockserver.c   |  2 +-
 5 files changed, 10 insertions(+), 10 deletions(-)
 rename util.c => num.c (97%)
 rename util.h => num.h (100%)

diff --git a/Makefile b/Makefile
index 07ff09b..1a4bb10 100644
--- a/Makefile
+++ b/Makefile
@@ -18,15 +18,15 @@ install: vsockclient vsockserver
 	$(INSTALL_PROGRAM) vsockclient vsockserver $(DESTDIR)$(bindir)
 .PHONY: install
 
-vsockclient: vsockclient.o env.o log.o util.o vsock.o
-	$(CC) $(LDFLAGS) -o vsockclient vsockclient.o env.o log.o util.o vsock.o $(LDLIBS)
-vsockserver: vsockserver.o env.o log.o util.o vsock.o
-	$(CC) $(LDFLAGS) -o vsockserver vsockserver.o env.o log.o util.o vsock.o $(LDLIBS)
+vsockclient: vsockclient.o env.o log.o num.o vsock.o
+	$(CC) $(LDFLAGS) -o vsockclient vsockclient.o env.o log.o num.o vsock.o $(LDLIBS)
+vsockserver: vsockserver.o env.o log.o num.o vsock.o
+	$(CC) $(LDFLAGS) -o vsockserver vsockserver.o env.o log.o num.o vsock.o $(LDLIBS)
 
-vsockclient.o: env.h log.h util.h vsock.h
-vsockserver.o: env.h log.h util.h vsock.h
+vsockclient.o: env.h log.h num.h vsock.h
+vsockserver.o: env.h log.h num.h vsock.h
 
 clean:
-	rm -f env.o log.o util.o vsock.o \
+	rm -f env.o log.o num.o vsock.o \
 		vsockclient.o vsockclient vsockserver.o vsockserver
 .PHONY: clean
diff --git a/util.c b/num.c
similarity index 97%
rename from util.c
rename to num.c
index 2b39df1..ac7f0a4 100644
--- a/util.c
+++ b/num.c
@@ -3,7 +3,7 @@
 
 #define _GNU_SOURCE
 
-#include "util.h"
+#include "num.h"
 
 #include <ctype.h>
 #include <stdlib.h>
diff --git a/util.h b/num.h
similarity index 100%
rename from util.h
rename to num.h
diff --git a/vsockclient.c b/vsockclient.c
index d25ab13..fbdd20e 100644
--- a/vsockclient.c
+++ b/vsockclient.c
@@ -16,7 +16,7 @@
 
 #include "env.h"
 #include "log.h"
-#include "util.h"
+#include "num.h"
 #include "vsock.h"
 
 noreturn static void ex_usage(void)
diff --git a/vsockserver.c b/vsockserver.c
index 4c251b0..df9d334 100644
--- a/vsockserver.c
+++ b/vsockserver.c
@@ -19,7 +19,7 @@
 
 #include "env.h"
 #include "log.h"
-#include "util.h"
+#include "num.h"
 #include "vsock.h"
 
 noreturn static void ex_usage(void)
-- 
2.30.0

             reply	other threads:[~2021-03-18  0:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18  0:35 Alyssa Ross [this message]
2021-03-18  6:56 ` Cole Helbling
2021-03-18 13:13   ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210318003545.13414-1-hi@alyssa.is \
    --to=hi@alyssa.is \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).