summaryrefslogtreecommitdiff
path: root/StdLib/BsdSocketLib/res_debug.c
diff options
context:
space:
mode:
authorStefan Kaeser <stefankaeser@hotmail.com>2014-09-17 20:58:16 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-17 20:58:16 +0000
commit9d66ee4d177307ca59f08d242e592ec95a325d26 (patch)
tree23fc28c82adafada1a63418961bb167d03662055 /StdLib/BsdSocketLib/res_debug.c
parentec53da7bfa351186f02496971a39215e1158fb96 (diff)
downloadedk2-platforms-9d66ee4d177307ca59f08d242e592ec95a325d26.tar.xz
StdLib: Fix parameter type errors.
Fix casts of parameters to sprintf() so that they have the correct type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Stefan Kaeser <stefankaeser@hotmail.com> Reviewed-by: daryl.mcdaniel@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16125 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/BsdSocketLib/res_debug.c')
-rw-r--r--StdLib/BsdSocketLib/res_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/BsdSocketLib/res_debug.c b/StdLib/BsdSocketLib/res_debug.c
index 4adef6e545..791ac8372d 100644
--- a/StdLib/BsdSocketLib/res_debug.c
+++ b/StdLib/BsdSocketLib/res_debug.c
@@ -536,7 +536,7 @@ p_option(u_long option) {
case RES_DNSRCH: return "dnsrch";
case RES_INSECURE1: return "insecure1";
case RES_INSECURE2: return "insecure2";
- default: sprintf(nbuf, "?0x%lx?", (u_long)option);
+ default: sprintf(nbuf, "?0x%lx?", (unsigned long)option);
return (nbuf);
}
}