From: Robert Love <rml@tech9.net>
To: linux-hotplug@vger.kernel.org
Subject: [patch] udev: trivial trivialities
Date: Sat, 18 Oct 2003 01:23:43 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-106644068723517@msgid-missing> (raw)
Yah yah, really trivial stuff...
- get_class_device() doesn't need to be exported; it
should be static
- white space cleanup
Patch is against udev-003.
Robert Love
udev-add.c | 2 +-
udevdb.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff -urN udev-cvs/udev-add.c udev/udev-add.c
--- udev-cvs/udev-add.c 2003-10-17 21:19:40.630564464 -0400
+++ udev/udev-add.c 2003-10-17 21:18:44.257134528 -0400
@@ -101,7 +101,7 @@
return retval;
}
-struct sysfs_class_device *get_class_dev(char *device_name)
+static struct sysfs_class_device *get_class_dev(char *device_name)
{
char sysfs_path[SYSFS_PATH_MAX];
char dev_path[SYSFS_PATH_MAX];
diff -urN udev-cvs/udevdb.c udev/udevdb.c
--- udev-cvs/udevdb.c 2003-10-16 21:04:04.000000000 -0400
+++ udev/udevdb.c 2003-10-17 21:16:31.596302040 -0400
@@ -125,13 +125,13 @@
data = tdb_fetch(udevdb, key);
if (data.dptr = NULL || data.dsize = 0)
return NULL;
-
+
rec = (struct busdb_record *)malloc(sizeof(struct busdb_record));
if (rec = NULL) {
free(data.dptr);
return NULL;
}
-
+
memcpy(rec, data.dptr, sizeof(struct busdb_record));
free(data.dptr);
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2003-10-18 1:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-18 1:23 Robert Love [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-19 20:57 [patch] udev: trivial trivialities Greg KH
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=marc-linux-hotplug-106644068723517@msgid-missing \
--to=rml@tech9.net \
--cc=linux-hotplug@vger.kernel.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.
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).