<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>&gt; +#define CRED_UNPARSABLE 0<br>
<br>
</div>                ^^^ minor nit...should be &quot;UNPARSEABLE&quot;.<br>
<div><br></div></blockquote><div>Not nitpicking at all, spelling mistakes in code are embarrassing.  I had a feeling I should have double checked the spelling on that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><br>
&gt; +static int parse_cred_line(char* line, char* target)<br>
&gt; +{<br>
&gt; +     if (line == NULL)<br>
&gt; +             goto parsing_err;<br>
&gt; +<br>
&gt; +     /* position target at first char of value */<br>
&gt; +     target = strchr(line, &#39;=&#39;);<br>
&gt; +     if (!target)<br>
&gt; +             goto parsing_err;<br>
&gt; +     target++;<br>
<br>
</div>^^^^<br>
I don&#39;t think this will work. C does pass by value. Here you&#39;re passing<br>
in &quot;target&quot; as a pointer. That value will be updated in the local copy<br>
of that pointer in parse_cred_line, but caller will not see that you&#39;ve<br>
changed it. If you want to do this, you need to pass &quot;target&quot; as a<br>
pointer to a pointer and fix the references to it accordingly.<br></blockquote><div>D&#39;oh.  It&#39;s been a few years since I&#39;ve touched pointers at all.  Easy enough change.</div><div>  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><br><br>
</div>There are also some minor whitespace issues with these patches too<br>
(trailing whitespace on a few lines). </blockquote><div>Yeah, I found out that the formatting problems that I&#39;ve been having are due to UTF-8 and interaction between git-format-patch and git-send-email.  I added a format section to my .gitconfig (and git-format-patch seemed happy), but I guess I&#39;ve still got an issue. :/</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Since you&#39;ll need to fix the<br>

above anyway, it would be good to fix those as well.<br>
<br>
You might want to run the <a href="http://checkpatch.pl" target="_blank">checkpatch.pl</a> script from the Linux kernel<br>
sources against these patches and fix the problems it says too. I&#39;d<br>
like to see this code follow the Linux kernel coding standards for the<br>
most part.<br></blockquote><div> Will do.</div></div>