Thread (3 messages) 3 messages, 3 authors, 2006-11-16

Re: [PATCH 11/16] powerpc: add ps3 platform repository support

flat view

From: Christoph Hellwig <hch@lst.de>
Date: 2006-11-15 18:06:22

On Fri, Nov 10, 2006 at 12:03:08PM -0800, Geoff Levand wrote:
quoted hunk ↗ jump to hunk
+ * make_first_field - Make the first field of a repository node name.
+ * @text: Text portion of the field.
+ * @index: Numeric index portion of the field.  Use zero for 'don't care'.
+ *
+ * This routine sets the vendor id to zero (non-vendor specific).
+ * Returns field value.
+ */
+
+static u64 make_first_field(const char *text, u64 index)
+{
+	u64 n;
+
+	strncpy((char *)&n, text, 8);
+	return ps3pf_vendor_id_none + (n >> 32) + index;
+}
a strncpy into a const pointer doesn't make any sense.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help