public inbox for location@lists.ipfire.org
 help / color / mirror / Atom feed
From: Gisle Vanem <gvanem@online.no>
To: location@lists.ipfire.org
Subject: Re: Warning in '__loc_network_tree_count()'
Date: Sat, 04 Mar 2023 12:00:57 +0100	[thread overview]
Message-ID: <7845ed2c-76c8-df33-7f8a-2bccd8d10c6e@online.no> (raw)
In-Reply-To: <34085602-5207-4A22-9C9D-34292A3A3344@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 765 bytes --]

Michael Tremer wrote:

>> So shouldn't the function be:
>>
>> static int __loc_network_tree_count(struct loc_network* network, void* data) {
>> size_t* counter = (size_t*)data;
>>
>> // Increase the counter for each network
>> (*counter)++;
>> return 0;
> 
> Yes, you are incorrect. I am incrementing the pointer when I wanted to increment the value. 

You mean "you are correct"?

> Thank you for helping to improve libloc. How does it run on Windows?
I doesn't run at all w/o much patching by myself. I've added
support for it and 'location.db' files in my project Wsock-trace:
   https://github.com/gvanem/wsock-trace

The patched up 'libloc' version:
   https://github.com/gvanem/wsock-trace/tree/master/src/Geo-IP/IPFire/src

-- 
--gv

  reply	other threads:[~2023-03-04 11:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-04 10:44 Gisle Vanem
2023-03-04 10:51 ` Michael Tremer
2023-03-04 11:00   ` Gisle Vanem [this message]
2023-03-04 11:03     ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7845ed2c-76c8-df33-7f8a-2bccd8d10c6e@online.no \
    --to=gvanem@online.no \
    --cc=location@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox