Negative ports don't make sense so use a unsigned integer.
*/
int
virStringParsePort(const char *str,
- int *port)
+ unsigned int *port)
{
unsigned int p = 0;
void virStringTrimOptionalNewline(char *str);
int virStringParsePort(const char *str,
- int *port)
+ unsigned int *port)
ATTRIBUTE_NONNULL(2) ATTRIBUTE_RETURN_CHECK;
#endif /* __VIR_STRING_H__ */
char *scheme; /* the URI scheme */
char *server; /* the server part */
char *user; /* the user part */
- int port; /* the port number */
+ unsigned int port; /* the port number */
char *path; /* the path string */
char *query; /* the query string */
char *fragment; /* the fragment string */