Rename signerstatustostring to signer_status_to_string

Otherwise, it's fartoohardformetoreadthis code.
This commit is contained in:
Carl Worth 2011-05-31 16:20:56 -07:00
parent 2d1356e8db
commit 1a96c4078c

View file

@ -420,7 +420,7 @@ show_text_part_content (GMimeObject *part, GMimeStream *stream_out)
} }
static const char* static const char*
signerstatustostring (GMimeSignerStatus x) signer_status_to_string (GMimeSignerStatus x)
{ {
switch (x) { switch (x) {
case GMIME_SIGNER_STATUS_NONE: case GMIME_SIGNER_STATUS_NONE:
@ -546,7 +546,9 @@ format_part_sigstatus_json (const GMimeSignatureValidity* validity)
printf ("{"); printf ("{");
/* status */ /* status */
printf ("\"status\": %s", json_quote_str (ctx_quote, signerstatustostring(signer->status))); printf ("\"status\": %s",
json_quote_str (ctx_quote,
signer_status_to_string (signer->status)));
if (signer->status == GMIME_SIGNER_STATUS_GOOD) if (signer->status == GMIME_SIGNER_STATUS_GOOD)
{ {